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, initpublic 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)
ColumnarStructBasegetLength in class ColumnarStructBasecachedByteArrayRef - the bytes of the objectstart - the start offsetfieldLen - the lengthprotected LazyObjectBase createLazyObjectBase(ObjectInspector objectInspector)
ColumnarStructBasecreateLazyObjectBase in class ColumnarStructBaseobjectInspector - the object inspector for the fieldCopyright © 2012 The Apache Software Foundation