org.apache.hadoop.hive.serde2.lazy.objectinspector.primitive
Class AbstractPrimitiveLazyObjectInspector<T extends org.apache.hadoop.io.Writable>

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveObjectInspector
      extended by org.apache.hadoop.hive.serde2.lazy.objectinspector.primitive.AbstractPrimitiveLazyObjectInspector<T>
All Implemented Interfaces:
ObjectInspector, PrimitiveObjectInspector
Direct Known Subclasses:
LazyBooleanObjectInspector, LazyByteObjectInspector, LazyDoubleObjectInspector, LazyFloatObjectInspector, LazyIntObjectInspector, LazyLongObjectInspector, LazyShortObjectInspector, LazyStringObjectInspector, LazyVoidObjectInspector

public abstract class AbstractPrimitiveLazyObjectInspector<T extends org.apache.hadoop.io.Writable>
extends AbstractPrimitiveObjectInspector

An AbstractPrimitiveLazyObjectInspector for a LazyPrimitive object.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector
PrimitiveObjectInspector.PrimitiveCategory
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
ObjectInspector.Category
 
Constructor Summary
protected AbstractPrimitiveLazyObjectInspector(PrimitiveObjectInspectorUtils.PrimitiveTypeEntry typeEntry)
           
 
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 org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveObjectInspector
getCategory, getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector
copyObject, getPrimitiveJavaObject
 

Constructor Detail

AbstractPrimitiveLazyObjectInspector

protected AbstractPrimitiveLazyObjectInspector(PrimitiveObjectInspectorUtils.PrimitiveTypeEntry typeEntry)
Method Detail

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 © 2009 The Apache Software Foundation