Class Avro.ReadBuilder

  • Enclosing class:
    Avro

    public static class Avro.ReadBuilder
    extends java.lang.Object
    • Method Detail

      • createResolvingReader

        public Avro.ReadBuilder createResolvingReader​(java.util.function.Function<Schema,​org.apache.avro.io.DatumReader<?>> readerFunction)
      • createReaderFunc

        public Avro.ReadBuilder createReaderFunc​(java.util.function.Function<org.apache.avro.Schema,​org.apache.avro.io.DatumReader<?>> readerFunction)
      • createReaderFunc

        public Avro.ReadBuilder createReaderFunc​(java.util.function.BiFunction<Schema,​org.apache.avro.Schema,​org.apache.avro.io.DatumReader<?>> readerFunction)
      • split

        public Avro.ReadBuilder split​(long newStart,
                                      long newLength)
        Restricts the read to the given range: [start, end = start + length).
        Parameters:
        newStart - the start position for this read
        newLength - the length of the range this read should scan
        Returns:
        this builder for method chaining
      • reuseContainers

        public Avro.ReadBuilder reuseContainers​(boolean shouldReuse)
      • rename

        public Avro.ReadBuilder rename​(java.lang.String fullName,
                                       java.lang.String newName)
      • classLoader

        public Avro.ReadBuilder classLoader​(java.lang.ClassLoader classLoader)