Class ThriftRecordExtractor
- java.lang.Object
-
- org.apache.pinot.spi.data.readers.BaseRecordExtractor<org.apache.thrift.TBase>
-
- org.apache.pinot.plugin.inputformat.thrift.ThriftRecordExtractor
-
- All Implemented Interfaces:
Serializable,RecordExtractor<org.apache.thrift.TBase>
public class ThriftRecordExtractor extends BaseRecordExtractor<org.apache.thrift.TBase>
Extractor for records of Thrift input- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ThriftRecordExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectconvertRecord(Object value)Handles the conversion of each field of a Thrift object.GenericRowextract(org.apache.thrift.TBase from, GenericRow to)voidinit(Set<String> fields, RecordExtractorConfig recordExtractorConfig)protected booleanisRecord(Object value)Returns whether the object is a Thrift object.-
Methods inherited from class org.apache.pinot.spi.data.readers.BaseRecordExtractor
convert, convertMap, convertMultiValue, convertSingleValue, isMap, isMultiValue
-
-
-
-
Method Detail
-
init
public void init(@Nullable Set<String> fields, RecordExtractorConfig recordExtractorConfig)
-
extract
public GenericRow extract(org.apache.thrift.TBase from, GenericRow to)
-
isRecord
protected boolean isRecord(Object value)
Returns whether the object is a Thrift object.- Overrides:
isRecordin classBaseRecordExtractor<org.apache.thrift.TBase>
-
convertRecord
protected Object convertRecord(Object value)
Handles the conversion of each field of a Thrift object.- Overrides:
convertRecordin classBaseRecordExtractor<org.apache.thrift.TBase>- Parameters:
value- should be verified to be a Thrift TBase type prior to calling this method as it will be casted without checking
-
-