public class ColumnarStruct extends ColumnarStructBase
ColumnarStructBase.init(BytesRefArrayWritable cols)
, while LazyStruct parse fields in a
lazy way.prjColIDs
Constructor and Description |
---|
ColumnarStruct(ObjectInspector oi)
Construct a ColumnarStruct object with the TypeInfo.
|
ColumnarStruct(ObjectInspector oi,
java.util.ArrayList<java.lang.Integer> notSkippedColumnIDs,
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)
oi
- the ObjectInspector representing the type of this LazyStruct.public ColumnarStruct(ObjectInspector oi, java.util.ArrayList<java.lang.Integer> notSkippedColumnIDs, 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 © 2012 The Apache Software Foundation