Package org.apache.iceberg.avro
Class Avro.ReadBuilder
java.lang.Object
org.apache.iceberg.avro.Avro.ReadBuilder
- Enclosing class:
- Avro
-
Method Summary
Modifier and TypeMethodDescription<D> AvroIterable<D>build()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) reuseContainers(boolean shouldReuse) split(long newStart, long newLength) Restricts the read to the given range: [start, end = start + length).withNameMapping(NameMapping newNameMapping)
-
Method Details
-
createResolvingReader
public Avro.ReadBuilder createResolvingReader(Function<Schema, org.apache.avro.io.DatumReader<?>> readerFunction) -
createReaderFunc
public Avro.ReadBuilder createReaderFunc(Function<org.apache.avro.Schema, org.apache.avro.io.DatumReader<?>> readerFunction) -
createReaderFunc
public Avro.ReadBuilder createReaderFunc(BiFunction<Schema, org.apache.avro.Schema, org.apache.avro.io.DatumReader<?>> readerFunction) -
split
Restricts the read to the given range: [start, end = start + length).- Parameters:
newStart- the start position for this readnewLength- the length of the range this read should scan- Returns:
- this builder for method chaining
-
project
-
reuseContainers
-
reuseContainers
-
rename
-
withNameMapping
-
classLoader
-
build
-