public class ColumnarStruct extends ColumnarStructBase
ColumnarStructBase.init(BytesRefArrayWritable cols)
, while LazyStruct parse fields in a
lazy way.prjColIDs
Constructor and Description |
---|
ColumnarStruct(ObjectInspector oi,
List<Integer> notSkippedColumnIDs,
org.apache.hadoop.io.Text nullSequence)
Construct a ColumnarStruct object with the TypeInfo.
|
Modifier and Type | Method and Description |
---|---|
protected LazyObjectBase |
createLazyObjectBase(ObjectInspector objectInspector)
create the lazy object for this field
|
protected int |
getLength(ObjectInspector objectInspector,
ByteArrayRef cachedByteArrayRef,
int start,
int fieldLen)
Check if the object is null and return the length of the stream
|
getField, getFieldsAsList, getRawDataSerializedSize, init
public ColumnarStruct(ObjectInspector oi, List<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 skippedprotected int getLength(ObjectInspector objectInspector, ByteArrayRef cachedByteArrayRef, int start, int fieldLen)
ColumnarStructBase
getLength
in class ColumnarStructBase
cachedByteArrayRef
- the bytes of the objectstart
- the start offsetfieldLen
- the lengthprotected LazyObjectBase createLazyObjectBase(ObjectInspector objectInspector)
ColumnarStructBase
createLazyObjectBase
in class ColumnarStructBase
objectInspector
- the object inspector for the fieldCopyright © 2016 The Apache Software Foundation. All rights reserved.