Package org.apache.iceberg.avro
Class InternalWriter<T>
java.lang.Object
org.apache.iceberg.avro.InternalWriter<T>
- All Implemented Interfaces:
org.apache.avro.io.DatumWriter<T>,MetricsAwareDatumWriter<T>
A Writer that consumes Iceberg's internal in-memory object model.
Iceberg's internal in-memory object model produces the types defined in Type.TypeID.javaClass().
-
Method Summary
Modifier and TypeMethodDescriptionstatic <D> InternalWriter<D> create(org.apache.avro.Schema schema) metrics()Returns a stream ofFieldMetricsthat this MetricsAwareDatumWriter keeps track of.voidsetSchema(org.apache.avro.Schema schema) void
-
Method Details
-
create
-
setSchema
public void setSchema(org.apache.avro.Schema schema) - Specified by:
setSchemain interfaceorg.apache.avro.io.DatumWriter<T>
-
write
- Specified by:
writein interfaceorg.apache.avro.io.DatumWriter<T>- Throws:
IOException
-
metrics
Description copied from interface:MetricsAwareDatumWriterReturns a stream ofFieldMetricsthat this MetricsAwareDatumWriter keeps track of.- Specified by:
metricsin interfaceMetricsAwareDatumWriter<T>
-