Package org.apache.iceberg.flink.data
Class FlinkAvroWriter
java.lang.Object
org.apache.iceberg.flink.data.FlinkAvroWriter
- All Implemented Interfaces:
org.apache.avro.io.DatumWriter<org.apache.flink.table.data.RowData>,MetricsAwareDatumWriter<org.apache.flink.table.data.RowData>
public class FlinkAvroWriter
extends Object
implements MetricsAwareDatumWriter<org.apache.flink.table.data.RowData>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmetrics()Returns a stream ofFieldMetricsthat this MetricsAwareDatumWriter keeps track of.voidsetSchema(org.apache.avro.Schema schema) voidwrite(org.apache.flink.table.data.RowData datum, org.apache.avro.io.Encoder out) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.avro.io.DatumWriter
toByteArray
-
Constructor Details
-
FlinkAvroWriter
public FlinkAvroWriter(org.apache.flink.table.types.logical.RowType rowType)
-
-
Method Details
-
setSchema
public void setSchema(org.apache.avro.Schema schema) - Specified by:
setSchemain interfaceorg.apache.avro.io.DatumWriter<org.apache.flink.table.data.RowData>
-
write
public void write(org.apache.flink.table.data.RowData datum, org.apache.avro.io.Encoder out) throws IOException - Specified by:
writein interfaceorg.apache.avro.io.DatumWriter<org.apache.flink.table.data.RowData>- Throws:
IOException
-
metrics
Description copied from interface:MetricsAwareDatumWriterReturns a stream ofFieldMetricsthat this MetricsAwareDatumWriter keeps track of.- Specified by:
metricsin interfaceMetricsAwareDatumWriter<org.apache.flink.table.data.RowData>
-