public class JavaBinaryObjectInspector extends AbstractPrimitiveJavaObjectInspector implements SettableBinaryObjectInspector
PrimitiveObjectInspector.PrimitiveCategory
ObjectInspector.Category
typeParams
Modifier and Type | Method and Description |
---|---|
byte[] |
copyObject(java.lang.Object o)
Get a copy of the Object in the same class, so the return value can be
stored independently of the parameter.
|
byte[] |
create(byte[] bb)
Create an object with the value.
|
byte[] |
create(BytesWritable bw)
Create an object with the value.
|
byte[] |
getPrimitiveJavaObject(java.lang.Object o)
Get the Java Primitive object.
|
BytesWritable |
getPrimitiveWritableObject(java.lang.Object o)
Return the data in an instance of primitive writable Object.
|
byte[] |
set(java.lang.Object o,
byte[] bb)
Set the object with the value.
|
byte[] |
set(java.lang.Object o,
BytesWritable bw)
Set the object with the value.
|
preferWritable
getCategory, getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeName, getTypeParams, setTypeParams
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeParams, preferWritable, setTypeParams
getCategory, getTypeName
public byte[] copyObject(java.lang.Object o)
PrimitiveObjectInspector
copyObject
in interface PrimitiveObjectInspector
copyObject
in class AbstractPrimitiveJavaObjectInspector
public BytesWritable getPrimitiveWritableObject(java.lang.Object o)
PrimitiveObjectInspector
getPrimitiveWritableObject
in interface BinaryObjectInspector
getPrimitiveWritableObject
in interface PrimitiveObjectInspector
public byte[] getPrimitiveJavaObject(java.lang.Object o)
PrimitiveObjectInspector
getPrimitiveJavaObject
in interface BinaryObjectInspector
getPrimitiveJavaObject
in interface PrimitiveObjectInspector
getPrimitiveJavaObject
in class AbstractPrimitiveJavaObjectInspector
public byte[] set(java.lang.Object o, byte[] bb)
SettableBinaryObjectInspector
set
in interface SettableBinaryObjectInspector
public byte[] set(java.lang.Object o, BytesWritable bw)
SettableBinaryObjectInspector
set
in interface SettableBinaryObjectInspector
public byte[] create(byte[] bb)
SettableBinaryObjectInspector
create
in interface SettableBinaryObjectInspector
public byte[] create(BytesWritable bw)
SettableBinaryObjectInspector
create
in interface SettableBinaryObjectInspector
Copyright © 2012 The Apache Software Foundation