public class LazyArray extends LazyNonPrimitive<LazyListObjectInspector>
bytes, length, start
oi
Modifier | Constructor and Description |
---|---|
protected |
LazyArray(LazyListObjectInspector oi)
Construct a LazyArray object with the ObjectInspector.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Object> |
getList()
Returns the List of actual primitive objects.
|
java.lang.Object |
getListElementObject(int index)
Returns the actual primitive object at the index position inside the array
represented by this LazyObject.
|
int |
getListLength()
Returns -1 for null array.
|
void |
init(ByteArrayRef bytes,
int start,
int length)
Set the row data for this LazyArray.
|
getObject, hashCode
getInspector, setInspector
protected LazyArray(LazyListObjectInspector oi)
oi
- the oi representing the type of this LazyArray as well as meta
information like separator etc.public void init(ByteArrayRef bytes, int start, int length)
init
in class LazyNonPrimitive<LazyListObjectInspector>
bytes
- The wrapper of the byte[].start
- The start position inside the bytes.length
- The length of the data, starting from "start"LazyObjectBase.init(ByteArrayRef, int, int)
public java.lang.Object getListElementObject(int index)
public int getListLength()
public java.util.List<java.lang.Object> getList()
Copyright © 2012 The Apache Software Foundation