org.apache.hadoop.hive.serde2.objectinspector.primitive
Class WritableShortObjectInspector
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.WritableShortObjectInspector
- All Implemented Interfaces:
- Cloneable, ObjectInspector, SettableShortObjectInspector, ShortObjectInspector, PrimitiveObjectInspector
public class WritableShortObjectInspector
- extends AbstractPrimitiveWritableObjectInspector
- implements SettableShortObjectInspector
A WritableShortObjectInspector inspects a ShortWritable Object.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
get
public short get(Object o)
- Description copied from interface:
ShortObjectInspector
- Get the short data.
- Specified by:
get
in interface ShortObjectInspector
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(short value)
- Description copied from interface:
SettableShortObjectInspector
- Create an object with the value.
- Specified by:
create
in interface SettableShortObjectInspector
set
public Object set(Object o,
short value)
- Description copied from interface:
SettableShortObjectInspector
- Set the object with the value. Return the object that has the new value.
In most cases the returned value should be the same as o, but in case o is
unmodifiable, this will return a new object with new value.
- Specified by:
set
in interface SettableShortObjectInspector
Copyright © 2011 The Apache Software Foundation