public abstract class ColumnarStructBase extends Object implements StructObject, SerDeStatsStruct
Modifier and Type | Field and Description |
---|---|
protected int[] |
prjColIDs |
Constructor and Description |
---|
ColumnarStructBase(ObjectInspector oi,
List<Integer> notSkippedColumnIDs) |
Modifier and Type | Method and Description |
---|---|
protected abstract LazyObjectBase |
createLazyObjectBase(ObjectInspector objectInspector)
create the lazy object for this field
|
Object |
getField(int fieldID)
Get one field out of the struct.
|
ArrayList<Object> |
getFieldsAsList()
Get the values of the fields as an ArrayList.
|
protected abstract int |
getLength(ObjectInspector objectInspector,
ByteArrayRef cachedByteArrayRef,
int start,
int length)
Check if the object is null and return the length of the stream
|
long |
getRawDataSerializedSize()
Rerurns the serialized size of the object.
|
void |
init(BytesRefArrayWritable cols) |
public ColumnarStructBase(ObjectInspector oi, List<Integer> notSkippedColumnIDs)
public Object getField(int fieldID)
getField
in interface StructObject
fieldID
- The field IDprotected abstract int getLength(ObjectInspector objectInspector, ByteArrayRef cachedByteArrayRef, int start, int length)
objectInspector
- cachedByteArrayRef
- the bytes of the objectstart
- the start offsetlength
- the lengthprotected abstract LazyObjectBase createLazyObjectBase(ObjectInspector objectInspector)
objectInspector
- the object inspector for the fieldpublic void init(BytesRefArrayWritable cols)
public ArrayList<Object> getFieldsAsList()
getFieldsAsList
in interface StructObject
public long getRawDataSerializedSize()
SerDeStatsStruct
getRawDataSerializedSize
in interface SerDeStatsStruct
Copyright © 2017 The Apache Software Foundation. All rights reserved.