Package org.apache.iceberg.flink.data
Class FlinkOrcWriter
java.lang.Object
org.apache.iceberg.flink.data.FlinkOrcWriter
- All Implemented Interfaces:
OrcRowWriter<org.apache.flink.table.data.RowData>
public class FlinkOrcWriter
extends Object
implements OrcRowWriter<org.apache.flink.table.data.RowData>
-
Method Summary
Modifier and TypeMethodDescriptionstatic OrcRowWriter<org.apache.flink.table.data.RowData>
buildWriter
(org.apache.flink.table.types.logical.RowType rowType, Schema iSchema) Stream<FieldMetrics<?>>
metrics()
Returns a stream ofFieldMetrics
that this OrcRowWriter keeps track of.void
write
(org.apache.flink.table.data.RowData row, org.apache.orc.storage.ql.exec.vector.VectorizedRowBatch output) Writes or appends a row to ORC's VectorizedRowBatch.List<OrcValueWriter<?>>
writers()
-
Method Details
-
buildWriter
public static OrcRowWriter<org.apache.flink.table.data.RowData> buildWriter(org.apache.flink.table.types.logical.RowType rowType, Schema iSchema) -
write
public void write(org.apache.flink.table.data.RowData row, org.apache.orc.storage.ql.exec.vector.VectorizedRowBatch output) Description copied from interface:OrcRowWriter
Writes or appends a row to ORC's VectorizedRowBatch.- Specified by:
write
in interfaceOrcRowWriter<org.apache.flink.table.data.RowData>
- Parameters:
row
- the row data value to write.output
- the VectorizedRowBatch to which the output will be written.
-
writers
- Specified by:
writers
in interfaceOrcRowWriter<org.apache.flink.table.data.RowData>
-
metrics
Description copied from interface:OrcRowWriter
Returns a stream ofFieldMetrics
that this OrcRowWriter keeps track of.- Specified by:
metrics
in interfaceOrcRowWriter<org.apache.flink.table.data.RowData>
-