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.lazy.LazyObjectBase
org.apache.hadoop.hive.serde2.lazybinary.LazyBinaryObject<OI>
org.apache.hadoop.hive.serde2.lazybinary.LazyBinaryPrimitive<OI,T>
- Direct Known Subclasses:
- LazyBinaryBigDecimal, LazyBinaryBinary, LazyBinaryBoolean, LazyBinaryByte, LazyBinaryDouble, LazyBinaryFloat, LazyBinaryInteger, LazyBinaryLong, LazyBinaryShort, LazyBinaryString, LazyBinaryTimestamp, LazyBinaryVoid
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 LazyObjectBase
getWritableObject
public T getWritableObject()
toString
public String toString()
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Specified by:
hashCode
in class LazyBinaryObject<OI extends ObjectInspector>
Copyright © 2013 The Apache Software Foundation