Class AbstractAvroBulkFormat<A,​T,​SplitT extends FileSourceSplit>

    • Field Detail

      • readerSchema

        protected final org.apache.avro.Schema readerSchema
    • Constructor Detail

      • AbstractAvroBulkFormat

        protected AbstractAvroBulkFormat​(org.apache.avro.Schema readerSchema)
    • Method Detail

      • restoreReader

        public org.apache.flink.formats.avro.AbstractAvroBulkFormat.AvroReader restoreReader​(Configuration config,
                                                                                             SplitT split)
                                                                                      throws IOException
        Description copied from interface: BulkFormat
        Creates a new reader that reads from split.path() starting at offset and reads until length bytes after the offset. A number of recordsToSkip records should be read and discarded after the offset. This is typically part of restoring a reader to a checkpointed position.
        Specified by:
        restoreReader in interface BulkFormat<A,​T>
        Throws:
        IOException
      • isSplittable

        public boolean isSplittable()
        Description copied from interface: BulkFormat
        Checks whether this format is splittable. Splittable formats allow Flink to create multiple splits per file, so that Flink can read multiple regions of the file concurrently.

        See top-level JavaDocs (section "Splitting") for details.

        Specified by:
        isSplittable in interface BulkFormat<A,​T>
      • createReusedAvroRecord

        protected abstract A createReusedAvroRecord()
      • createConverter

        protected abstract Function<A,​T> createConverter()