Package org.apache.iceberg.formats
Interface BaseFormatModel.ReaderFunction<R,S,F>
- Type Parameters:
R- the file format specific reader type to be createdS- the engine-specific schema type describing the output dataF- the file schema type used by the underlying file format
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A functional interface for creating readers that can read data from a specific format.
-
Method Summary
-
Method Details
-
read
Creates a reader for the given schemas.- Parameters:
icebergSchema- the Iceberg schema defining the table structurefileSchema- the schema that the file was written with, although it can benullin the case of Avro files because it is passed in laterengineSchema- the engine-specific schema for the output data (optional)idToConstant- a map of field IDs to constant values for partition columns and other fields not stored in data files- Returns:
- a reader configured for the given schemas
-