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, initpublic 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)
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 © 2019 The Apache Software Foundation. All Rights Reserved.