|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.serde2.lazybinary.LazyBinaryObject<OI>
public abstract class LazyBinaryObject<OI extends ObjectInspector>
LazyBinaryObject stores an object in a binary format in a byte[]. For example, a double takes four bytes. A LazyBinaryObject can represent any primitive object or hierarchical object like string, list, map or struct.
Constructor Summary | |
---|---|
protected |
LazyBinaryObject(OI oi)
Create a LazyBinaryObject. |
Method Summary | |
---|---|
abstract Object |
getObject()
If the LazyBinaryObject is a primitive Object, then deserialize it and return the actual primitive Object. |
abstract int |
hashCode()
|
abstract void |
init(ByteArrayRef bytes,
int start,
int length)
Set the data for this LazyBinaryObject. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LazyBinaryObject(OI oi)
oi
- Derived classes can access meta information about this Lazy
Binary Object (e.g, length, null-bits) from it.Method Detail |
---|
public abstract void init(ByteArrayRef bytes, int start, int length)
bytes
- The wrapper of the byte[].start
- The start position inside the bytes.length
- The length of the data, starting from "start"ByteArrayRef
public abstract Object getObject()
public abstract int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |