|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.serde2.lazy.LazyNonPrimitive
org.apache.hadoop.hive.serde2.lazy.LazyArray
public class LazyArray
LazyArray stores an array of Lazy Objects. LazyArray does not deal with the case of a NULL array. That is handled by LazyArrayObjectInspector.
Field Summary |
---|
Fields inherited from class org.apache.hadoop.hive.serde2.lazy.LazyNonPrimitive |
---|
bytes, length, start |
Constructor Summary | |
---|---|
protected |
LazyArray(TypeInfo typeInfo)
Construct a LazyArray object with the TypeInfo. |
Method Summary | |
---|---|
protected void |
enlargeArrays()
Enlarge the size of arrays storing information for the elements inside the array. |
List<Object> |
getList(byte separator,
org.apache.hadoop.io.Text nullSequence)
Returns the List of actual primitive objects. |
Object |
getListElementObject(int index,
byte separator,
org.apache.hadoop.io.Text nullSequence)
Returns the actual primitive object at the index position inside the array represented by this LazyObject. |
int |
getListLength(byte separator,
org.apache.hadoop.io.Text nullSequence)
Returns -1 for null array. |
void |
init(ByteArrayRef bytes,
int start,
int length)
Set the row data for this LazyArray. |
Methods inherited from class org.apache.hadoop.hive.serde2.lazy.LazyNonPrimitive |
---|
getObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LazyArray(TypeInfo typeInfo)
typeInfo
- the TypeInfo representing the type of this LazyArray.Method Detail |
---|
public void init(ByteArrayRef bytes, int start, int length)
init
in interface LazyObject
init
in class LazyNonPrimitive
bytes
- The wrapper of the byte[].start
- The start position inside the bytes.length
- The length of the data, starting from "start"LazyObject.init(ByteArrayRef, int, int)
protected void enlargeArrays()
public Object getListElementObject(int index, byte separator, org.apache.hadoop.io.Text nullSequence)
public int getListLength(byte separator, org.apache.hadoop.io.Text nullSequence)
public List<Object> getList(byte separator, org.apache.hadoop.io.Text nullSequence)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |