Package org.apache.parquet.io.api
Class RecordMaterializer<T>
java.lang.Object
org.apache.parquet.io.api.RecordMaterializer<T>
- Type Parameters:
T- the materialized object class
- Direct Known Subclasses:
DummyRecordConverter,FilteringRecordMaterializer,GroupRecordConverter
Top-level class which should be implemented in order to materialize objects from
a stream of Parquet data.
Each record will be wrapped by GroupConverter.start() and GroupConverter.end(),
between which the appropriate fields will be materialized.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis exception signals that the current record is cannot be converted from parquet columns to a materialized record, but can be skipped if requested. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Tabstract GroupConvertervoidCalled ifgetCurrentRecord()isn't going to be called.
-
Constructor Details
-
RecordMaterializer
public RecordMaterializer()
-
-
Method Details
-
getCurrentRecord
- Returns:
- the result of the conversion
- Throws:
RecordMaterializer.RecordMaterializationException- to signal that a record cannot be materialized, but can be skipped
-
skipCurrentRecord
public void skipCurrentRecord()Called ifgetCurrentRecord()isn't going to be called. -
getRootConverter
- Returns:
- the root converter for this tree
-