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
public abstract class RecordMaterializer<T> extends Object
Top-level class which should be implemented in order to materialize objects from a stream of Parquet data. Each record will be wrapped byGroupConverter.start()andGroupConverter.end(), between which the appropriate fields will be materialized.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRecordMaterializer.RecordMaterializationExceptionThis 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 Constructor Description RecordMaterializer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract TgetCurrentRecord()abstract GroupConvertergetRootConverter()voidskipCurrentRecord()Called ifgetCurrentRecord()isn't going to be called.
-
-
-
Method Detail
-
getCurrentRecord
public abstract T 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
public abstract GroupConverter getRootConverter()
- Returns:
- the root converter for this tree
-
-