org.apache.hadoop.hive.serde2.objectinspector.primitive
Class AbstractPrimitiveWritableObjectInspector
java.lang.Object
org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveObjectInspector
org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveWritableObjectInspector
- All Implemented Interfaces:
- Cloneable, ObjectInspector, PrimitiveObjectInspector
- Direct Known Subclasses:
- WritableBinaryObjectInspector, WritableBooleanObjectInspector, WritableByteObjectInspector, WritableDoubleObjectInspector, WritableFloatObjectInspector, WritableIntObjectInspector, WritableLongObjectInspector, WritableShortObjectInspector, WritableStringObjectInspector, WritableTimestampObjectInspector, WritableVoidObjectInspector
public abstract class AbstractPrimitiveWritableObjectInspector
- extends AbstractPrimitiveObjectInspector
An AbstractWritablePrimitiveObjectInspector for a Writable object.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractPrimitiveWritableObjectInspector
protected AbstractPrimitiveWritableObjectInspector(PrimitiveObjectInspectorUtils.PrimitiveTypeEntry typeEntry)
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.
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 © 2011 The Apache Software Foundation