org.apache.hadoop.hive.serde2.lazybinary
Class LazyBinaryPrimitive<OI extends ObjectInspector,T extends org.apache.hadoop.io.Writable>
java.lang.Object
org.apache.hadoop.hive.serde2.lazybinary.LazyBinaryObject<OI>
org.apache.hadoop.hive.serde2.lazybinary.LazyBinaryPrimitive<OI,T>
- Direct Known Subclasses:
- LazyBinaryBoolean, LazyBinaryByte, LazyBinaryDouble, LazyBinaryFloat, LazyBinaryInteger, LazyBinaryLong, LazyBinaryShort, LazyBinaryString
public abstract class LazyBinaryPrimitive<OI extends ObjectInspector,T extends org.apache.hadoop.io.Writable>
- extends LazyBinaryObject<OI>
Defines a LazyBinaryPrimitive.
data will be initialized to corresponding types in
different LazyBinary primitive classes. For example, data will
be a BooleanWritable in the LazyBinaryBoolean class.
There is no null flag any more,
getObject
public Object getObject()
- Returns the primitive object represented by this LazyBinaryObject.
This is useful because it can make sure we have "null" for null objects.
- Specified by:
getObject
in class LazyBinaryObject<OI extends ObjectInspector>
getWritableObject
public T getWritableObject()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009 The Apache Software Foundation