public class WritableBinaryObjectInspector extends AbstractPrimitiveWritableObjectInspector implements SettableBinaryObjectInspector
PrimitiveObjectInspector.PrimitiveCategory
ObjectInspector.Category
typeInfo
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.io.BytesWritable |
copyObject(Object o)
Get a copy of the Object in the same class, so the return value can be
stored independently of the parameter.
|
org.apache.hadoop.io.BytesWritable |
create(byte[] bb)
Create an object with the value.
|
org.apache.hadoop.io.BytesWritable |
create(org.apache.hadoop.io.BytesWritable bw)
Create an object with the value.
|
byte[] |
getPrimitiveJavaObject(Object o)
Get the Java Primitive object.
|
org.apache.hadoop.io.BytesWritable |
getPrimitiveWritableObject(Object o)
Return the data in an instance of primitive writable Object.
|
org.apache.hadoop.io.BytesWritable |
set(Object o,
byte[] bb)
Set the object with the value.
|
org.apache.hadoop.io.BytesWritable |
set(Object o,
org.apache.hadoop.io.BytesWritable bw)
Set the object with the value.
|
preferWritable
getCategory, getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeInfo, getTypeName, precision, scale
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeInfo, precision, preferWritable, scale
getCategory, getTypeName
public org.apache.hadoop.io.BytesWritable copyObject(Object o)
PrimitiveObjectInspector
copyObject
in interface PrimitiveObjectInspector
public byte[] getPrimitiveJavaObject(Object o)
PrimitiveObjectInspector
getPrimitiveJavaObject
in interface BinaryObjectInspector
getPrimitiveJavaObject
in interface PrimitiveObjectInspector
public org.apache.hadoop.io.BytesWritable getPrimitiveWritableObject(Object o)
PrimitiveObjectInspector
getPrimitiveWritableObject
in interface BinaryObjectInspector
getPrimitiveWritableObject
in interface PrimitiveObjectInspector
getPrimitiveWritableObject
in class AbstractPrimitiveWritableObjectInspector
public org.apache.hadoop.io.BytesWritable set(Object o, byte[] bb)
SettableBinaryObjectInspector
set
in interface SettableBinaryObjectInspector
public org.apache.hadoop.io.BytesWritable set(Object o, org.apache.hadoop.io.BytesWritable bw)
SettableBinaryObjectInspector
set
in interface SettableBinaryObjectInspector
public org.apache.hadoop.io.BytesWritable create(byte[] bb)
SettableBinaryObjectInspector
create
in interface SettableBinaryObjectInspector
public org.apache.hadoop.io.BytesWritable create(org.apache.hadoop.io.BytesWritable bw)
SettableBinaryObjectInspector
create
in interface SettableBinaryObjectInspector
Copyright © 2017 The Apache Software Foundation. All rights reserved.