|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.serde2.lazy.LazyObject<OI>
public abstract class LazyObject<OI extends ObjectInspector>
LazyObject stores an object in a range of bytes in a byte[]. A LazyObject can represent any primitive object or hierarchical object like array, map or struct.
Constructor Summary | |
---|---|
protected |
LazyObject(OI oi)
Create a LazyObject. |
Method Summary | |
---|---|
protected OI |
getInspector()
|
abstract Object |
getObject()
If the LazyObject 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 LazyObject. |
protected void |
setInspector(OI oi)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LazyObject(OI oi)
oi
- Derived classes can access meta information about this Lazy Object
(e.g, separator, nullSequence, escaper) 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
protected OI getInspector()
protected void setInspector(OI oi)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |