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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic <D> DataWriter<D> create(org.apache.avro.Schema schema) protected ValueWriter<?> createStructWriter(List<ValueWriter<?>> fields) metrics()Returns a stream ofFieldMetricsthat this MetricsAwareDatumWriter keeps track of.voidsetSchema(org.apache.avro.Schema schema) void
- 
Constructor Details- 
DataWriterprotected DataWriter(org.apache.avro.Schema schema) 
 
- 
- 
Method Details- 
create
- 
setSchemapublic void setSchema(org.apache.avro.Schema schema) - Specified by:
- setSchemain interface- org.apache.avro.io.DatumWriter<T>
 
- 
write- Specified by:
- writein interface- org.apache.avro.io.DatumWriter<T>
- Throws:
- IOException
 
- 
createStructWriter
- 
metricsDescription copied from interface:MetricsAwareDatumWriterReturns a stream ofFieldMetricsthat this MetricsAwareDatumWriter keeps track of.- Specified by:
- metricsin interface- MetricsAwareDatumWriter<T>
 
 
-