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 by GroupConverter.start() and GroupConverter.end(), between which the appropriate fields will be materialized.

  • Constructor Details

    • RecordMaterializer

      public RecordMaterializer()
  • Method Details

    • 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 if getCurrentRecord() isn't going to be called.
    • getRootConverter

      public abstract GroupConverter getRootConverter()
      Returns:
      the root converter for this tree