|
||||||||||
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. |
Method Summary | |
---|---|
Object |
getField(int fieldID,
org.apache.hadoop.io.Text nullSequence)
Get one field out of the struct. |
ArrayList<Object> |
getFieldsAsList(org.apache.hadoop.io.Text nullSequence)
Get the values of the fields as an ArrayList. |
void |
init(BytesRefArrayWritable cols)
|
protected Object |
uncheckedGetField(int fieldID,
org.apache.hadoop.io.Text nullSequence)
Get the field out of the row without checking parsed. |
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.Method Detail |
---|
public Object getField(int fieldID, org.apache.hadoop.io.Text nullSequence)
fieldID
- The field IDnullSequence
- The sequence for null value
protected Object uncheckedGetField(int fieldID, org.apache.hadoop.io.Text nullSequence)
fieldID
- The id of the field starting from 0.nullSequence
- The sequence representing NULL value.
public void init(BytesRefArrayWritable cols)
public ArrayList<Object> getFieldsAsList(org.apache.hadoop.io.Text nullSequence)
nullSequence
- The sequence for the NULL value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |