Package org.apache.iceberg.data.orc
Class GenericOrcWriter
java.lang.Object
org.apache.iceberg.data.orc.GenericOrcWriter
- All Implemented Interfaces:
OrcRowWriter<Record>
-
Method Summary
Modifier and TypeMethodDescriptionstatic OrcRowWriter<Record>
buildWriter
(Schema expectedSchema, org.apache.orc.TypeDescription fileSchema) Stream<FieldMetrics<?>>
metrics()
Returns a stream ofFieldMetrics
that this OrcRowWriter keeps track of.void
Writes or appends a row to ORC's VectorizedRowBatch.List<OrcValueWriter<?>>
writers()
-
Method Details
-
buildWriter
public static OrcRowWriter<Record> buildWriter(Schema expectedSchema, org.apache.orc.TypeDescription fileSchema) -
write
Description copied from interface:OrcRowWriter
Writes or appends a row to ORC's VectorizedRowBatch.- Specified by:
write
in interfaceOrcRowWriter<Record>
- Parameters:
value
- the row data value to write.output
- the VectorizedRowBatch to which the output will be written.
-
writers
- Specified by:
writers
in interfaceOrcRowWriter<Record>
-
metrics
Description copied from interface:OrcRowWriter
Returns a stream ofFieldMetrics
that this OrcRowWriter keeps track of.- Specified by:
metrics
in interfaceOrcRowWriter<Record>
-