org.apache.hadoop.hive.serde2.columnar
Class ColumnarStruct

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.columnar.ColumnarStructBase
      extended by org.apache.hadoop.hive.serde2.columnar.ColumnarStruct
All Implemented Interfaces:
SerDeStatsStruct

public class ColumnarStruct
extends ColumnarStructBase

ColumnarStruct is different from LazyStruct in that ColumnarStruct's field Object get parsed at its initialize time when call ColumnarStructBase.init(BytesRefArrayWritable cols), while LazyStruct parse fields in a lazy way.


Constructor Summary
ColumnarStruct(ObjectInspector oi, List<Integer> notSkippedColumnIDs, org.apache.hadoop.io.Text nullSequence)
          Construct a ColumnarStruct object with the TypeInfo.
 
Method Summary
 
Methods inherited from class org.apache.hadoop.hive.serde2.columnar.ColumnarStructBase
getField, getFieldsAsList, getRawDataSerializedSize, init
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColumnarStruct

public ColumnarStruct(ObjectInspector oi,
                      List<Integer> notSkippedColumnIDs,
                      org.apache.hadoop.io.Text nullSequence)
Construct a ColumnarStruct object with the TypeInfo. It creates the first level object at the first place

Parameters:
oi - the ObjectInspector representing the type of this LazyStruct.
notSkippedColumnIDs - the column ids that should not be skipped


Copyright © 2014 The Apache Software Foundation. All rights reserved.