Package org.apache.iceberg.orc
Class ORCFormatModel<D,S,R>
java.lang.Object
org.apache.iceberg.formats.BaseFormatModel<D,S,OrcRowWriter<?>,R,org.apache.orc.TypeDescription>
org.apache.iceberg.orc.ORCFormatModel<D,S,R>
- All Implemented Interfaces:
FormatModel<D,S>
public class ORCFormatModel<D,S,R>
extends BaseFormatModel<D,S,OrcRowWriter<?>,R,org.apache.orc.TypeDescription>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.iceberg.formats.BaseFormatModel
BaseFormatModel.ReaderFunction<R,S, F>, BaseFormatModel.WriterFunction<W, S, F> -
Method Summary
Modifier and TypeMethodDescriptionstatic <D,S> ORCFormatModel <D, S, OrcBatchReader<?>> create(Class<D> type, Class<S> schemaType, BaseFormatModel.ReaderFunction<OrcBatchReader<?>, S, org.apache.orc.TypeDescription> batchReaderFunction) static <D,S> ORCFormatModel <D, S, OrcRowReader<D>> create(Class<D> type, Class<S> schemaType, BaseFormatModel.WriterFunction<OrcRowWriter<?>, S, org.apache.orc.TypeDescription> writerFunction, BaseFormatModel.ReaderFunction<OrcRowReader<D>, S, org.apache.orc.TypeDescription> readerFunction) format()The file format which is read/written by the object model.static <D> ORCFormatModel<PositionDelete<D>, Void, Object> readBuilder(InputFile inputFile) Creates a file reader builder for the specified input file.writeBuilder(EncryptedOutputFile outputFile) Creates a writer builder for data files.Methods inherited from class org.apache.iceberg.formats.BaseFormatModel
readerFunction, schemaType, type, writerFunction
-
Method Details
-
forPositionDeletes
-
create
public static <D,S> ORCFormatModel<D,S, createOrcRowReader<D>> (Class<D> type, Class<S> schemaType, BaseFormatModel.WriterFunction<OrcRowWriter<?>, S, org.apache.orc.TypeDescription> writerFunction, BaseFormatModel.ReaderFunction<OrcRowReader<D>, S, org.apache.orc.TypeDescription> readerFunction) -
create
public static <D,S> ORCFormatModel<D,S, createOrcBatchReader<?>> (Class<D> type, Class<S> schemaType, BaseFormatModel.ReaderFunction<OrcBatchReader<?>, S, org.apache.orc.TypeDescription> batchReaderFunction) -
format
Description copied from interface:FormatModelThe file format which is read/written by the object model. -
writeBuilder
Description copied from interface:FormatModelCreates a writer builder for data files.The returned
ModelWriteBuilderconfigures and creates a writer that converts input objects into the file format supported by this factory.- Parameters:
outputFile- destination for the written data- Returns:
- configured writer builder
-
readBuilder
Description copied from interface:FormatModelCreates a file reader builder for the specified input file.The returned
ReadBuilderconfigures and creates a reader that converts data from the file format into output objects supported by this factory.- Parameters:
inputFile- source file to read from- Returns:
- configured reader builder for the specified input
-