|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.serde2.columnar.ColumnarStruct
public class ColumnarStruct
ColumnarStruct is different from LazyStruct in that ColumnarStruct's field
Object get parsed at its initialize time when call
init(BytesRefArrayWritable cols)
, while LazyStruct parse fields in a
lazy way.
Constructor Summary | |
---|---|
ColumnarStruct(ObjectInspector oi)
Construct a ColumnarStruct object with the TypeInfo. |
|
ColumnarStruct(ObjectInspector oi,
ArrayList<Integer> notSkippedColumnIDs,
org.apache.hadoop.io.Text nullSequence)
Construct a ColumnarStruct object with the TypeInfo. |
Method Summary | |
---|---|
Object |
getField(int fieldID)
Get one field out of the struct. |
ArrayList<Object> |
getFieldsAsList()
Get the values of the fields as an ArrayList. |
void |
init(BytesRefArrayWritable cols)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ColumnarStruct(ObjectInspector oi)
oi
- the ObjectInspector representing the type of this LazyStruct.public ColumnarStruct(ObjectInspector oi, ArrayList<Integer> notSkippedColumnIDs, org.apache.hadoop.io.Text nullSequence)
oi
- the ObjectInspector representing the type of this LazyStruct.notSkippedColumnIDs
- the column ids that should not be skippedMethod Detail |
---|
public Object getField(int fieldID)
fieldID
- The field IDnullSequence
- The sequence for null value
public void init(BytesRefArrayWritable cols)
public ArrayList<Object> getFieldsAsList()
nullSequence
- The sequence for the NULL value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |