Package org.apache.iceberg.avro
Class Avro.ReadBuilder
java.lang.Object
org.apache.iceberg.avro.Avro.ReadBuilder
- All Implemented Interfaces:
- InternalData.ReadBuilder
- Enclosing class:
- Avro
- 
Method SummaryModifier and TypeMethodDescription<D> AvroIterable<D> build()Build the configured reader.classLoader(ClassLoader classLoader) createReaderFunc(BiFunction<Schema, org.apache.avro.Schema, org.apache.avro.io.DatumReader<?>> readerFunction) createReaderFunc(Function<org.apache.avro.Schema, org.apache.avro.io.DatumReader<?>> readerFunction) createResolvingReader(Function<Schema, org.apache.avro.io.DatumReader<?>> readerFunction) Set the projection schema.Reuse container classes, like structs, lists, and maps.reuseContainers(boolean shouldReuse) setCustomType(int fieldId, Class<? extends StructLike> structClass) Set a custom class for in-memory objects at the given field ID.setRootType(Class<? extends StructLike> rootClass) Set a custom class for in-memory objects at the schema root.split(long newStart, long newLength) Restricts the read to the given range: [start, end = start + length).withNameMapping(NameMapping newNameMapping) 
- 
Method Details- 
createResolvingReaderpublic Avro.ReadBuilder createResolvingReader(Function<Schema, org.apache.avro.io.DatumReader<?>> readerFunction) 
- 
createReaderFuncpublic Avro.ReadBuilder createReaderFunc(Function<org.apache.avro.Schema, org.apache.avro.io.DatumReader<?>> readerFunction) 
- 
createReaderFuncpublic Avro.ReadBuilder createReaderFunc(BiFunction<Schema, org.apache.avro.Schema, org.apache.avro.io.DatumReader<?>> readerFunction) 
- 
splitRestricts the read to the given range: [start, end = start + length).- Specified by:
- splitin interface- InternalData.ReadBuilder
- Parameters:
- newStart- the start position for this read
- newLength- the length of the range this read should scan
- Returns:
- this builder for method chaining
 
- 
projectDescription copied from interface:InternalData.ReadBuilderSet the projection schema.- Specified by:
- projectin interface- InternalData.ReadBuilder
 
- 
reuseContainersDescription copied from interface:InternalData.ReadBuilderReuse container classes, like structs, lists, and maps.- Specified by:
- reuseContainersin interface- InternalData.ReadBuilder
 
- 
reuseContainers
- 
rename
- 
setRootTypeDescription copied from interface:InternalData.ReadBuilderSet a custom class for in-memory objects at the schema root.- Specified by:
- setRootTypein interface- InternalData.ReadBuilder
 
- 
setCustomTypeDescription copied from interface:InternalData.ReadBuilderSet a custom class for in-memory objects at the given field ID.- Specified by:
- setCustomTypein interface- InternalData.ReadBuilder
 
- 
withNameMapping
- 
classLoader
- 
buildDescription copied from interface:InternalData.ReadBuilderBuild the configured reader.- Specified by:
- buildin interface- InternalData.ReadBuilder
 
 
-