Package org.apache.iceberg.data.avro
Class DataWriter<T>
java.lang.Object
org.apache.iceberg.data.avro.DataWriter<T>
- All Implemented Interfaces:
org.apache.avro.io.DatumWriter<T>
,MetricsAwareDatumWriter<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <D> DataWriter
<D> create
(org.apache.avro.Schema schema) protected ValueWriter
<?> createStructWriter
(List<ValueWriter<?>> fields) metrics()
Returns a stream ofFieldMetrics
that this MetricsAwareDatumWriter keeps track of.void
setSchema
(org.apache.avro.Schema schema) void
-
Constructor Details
-
DataWriter
protected DataWriter(org.apache.avro.Schema schema)
-
-
Method Details
-
create
-
setSchema
public void setSchema(org.apache.avro.Schema schema) - Specified by:
setSchema
in interfaceorg.apache.avro.io.DatumWriter<T>
-
write
- Specified by:
write
in interfaceorg.apache.avro.io.DatumWriter<T>
- Throws:
IOException
-
createStructWriter
-
metrics
Description copied from interface:MetricsAwareDatumWriter
Returns a stream ofFieldMetrics
that this MetricsAwareDatumWriter keeps track of.- Specified by:
metrics
in interfaceMetricsAwareDatumWriter<T>
-