org.apache.hadoop.hive.serde2.lazy.objectinspector.primitive
Class AbstractPrimitiveLazyObjectInspector<T extends Writable>
java.lang.Object
org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveObjectInspector
org.apache.hadoop.hive.serde2.lazy.objectinspector.primitive.AbstractPrimitiveLazyObjectInspector<T>
- All Implemented Interfaces:
- Cloneable, ObjectInspector, PrimitiveObjectInspector, PrimitiveTypeSpec
- Direct Known Subclasses:
- LazyBinaryObjectInspector, LazyBooleanObjectInspector, LazyByteObjectInspector, LazyDateObjectInspector, LazyDoubleObjectInspector, LazyFloatObjectInspector, LazyHiveDecimalObjectInspector, LazyHiveVarcharObjectInspector, LazyIntObjectInspector, LazyLongObjectInspector, LazyShortObjectInspector, LazyStringObjectInspector, LazyTimestampObjectInspector, LazyVoidObjectInspector
public abstract class AbstractPrimitiveLazyObjectInspector<T extends Writable>
- extends AbstractPrimitiveObjectInspector
An AbstractPrimitiveLazyObjectInspector for a LazyPrimitive object.
Method Summary |
T |
getPrimitiveWritableObject(Object o)
Return the data in an instance of primitive writable Object. |
boolean |
preferWritable()
Whether the ObjectInspector prefers to return a Primitive Writable Object
instead of a Primitive Java Object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractPrimitiveLazyObjectInspector
protected AbstractPrimitiveLazyObjectInspector(PrimitiveObjectInspectorUtils.PrimitiveTypeEntry typeEntry)
getPrimitiveWritableObject
public T 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.
preferWritable
public boolean preferWritable()
- Description copied from interface:
PrimitiveObjectInspector
- Whether the ObjectInspector prefers to return a Primitive Writable Object
instead of a Primitive Java Object. This can be useful for determining the
most efficient way to getting data out of the Object.
Copyright © 2012 The Apache Software Foundation