org.apache.hadoop.hive.serde2.objectinspector.primitive
Class JavaLongObjectInspector
java.lang.Object
org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveObjectInspector
org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveJavaObjectInspector
org.apache.hadoop.hive.serde2.objectinspector.primitive.JavaLongObjectInspector
- All Implemented Interfaces:
- Cloneable, ObjectInspector, LongObjectInspector, SettableLongObjectInspector, PrimitiveObjectInspector
public class JavaLongObjectInspector
- extends AbstractPrimitiveJavaObjectInspector
- implements SettableLongObjectInspector
A JavaLongObjectInspector inspects a Java Long Object.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getPrimitiveWritableObject
public Object getPrimitiveWritableObject(Object o)
- Description copied from interface:
PrimitiveObjectInspector
- Return the data in an instance of primitive writable Object. If the Object
is already a primitive writable Object, just return o.
- Specified by:
getPrimitiveWritableObject
in interface PrimitiveObjectInspector
get
public long get(Object o)
- Description copied from interface:
LongObjectInspector
- Get the long data.
- Specified by:
get
in interface LongObjectInspector
create
public Object create(long value)
- Description copied from interface:
SettableLongObjectInspector
- Create an object with the value.
- Specified by:
create
in interface SettableLongObjectInspector
set
public Object set(Object o,
long value)
- Description copied from interface:
SettableLongObjectInspector
- 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 SettableLongObjectInspector
Copyright © 2011 The Apache Software Foundation