org.apache.hadoop.hive.serde2.objectinspector.primitive
Class WritableByteObjectInspector
java.lang.Object
org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveObjectInspector
org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveWritableObjectInspector
org.apache.hadoop.hive.serde2.objectinspector.primitive.WritableByteObjectInspector
- All Implemented Interfaces:
- ObjectInspector, ByteObjectInspector, SettableByteObjectInspector, PrimitiveObjectInspector
public class WritableByteObjectInspector
- extends AbstractPrimitiveWritableObjectInspector
- implements SettableByteObjectInspector
A WritableByteObjectInspector inspects a ByteWritable Object.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
get
public byte get(Object o)
- Description copied from interface:
ByteObjectInspector
- Get the byte data.
- Specified by:
get
in interface ByteObjectInspector
copyObject
public Object copyObject(Object o)
- Description copied from interface:
PrimitiveObjectInspector
- Get a copy of the Object in the same class, so the return value can be
stored independently of the parameter.
If the Object is a Primitive Java Object, we just return the parameter
since Primitive Java Object is immutable.
- Specified by:
copyObject
in interface PrimitiveObjectInspector
getPrimitiveJavaObject
public Object getPrimitiveJavaObject(Object o)
- Description copied from interface:
PrimitiveObjectInspector
- Get the Java Primitive object.
- Specified by:
getPrimitiveJavaObject
in interface PrimitiveObjectInspector
create
public Object create(byte value)
- Description copied from interface:
SettableByteObjectInspector
- Create an object with the value.
- Specified by:
create
in interface SettableByteObjectInspector
set
public void set(Object o,
byte value)
- Description copied from interface:
SettableByteObjectInspector
- Set the object with the value.
- Specified by:
set
in interface SettableByteObjectInspector
Copyright © 2009 The Apache Software Foundation