Class LimitableBulkFormat<T,​SplitT extends FileSourceSplit>

    • Method Detail

      • restoreReader

        public BulkFormat.Reader<T> restoreReader​(org.apache.flink.configuration.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<T,​SplitT extends FileSourceSplit>
        Throws:
        IOException
      • getLimit

        public long getLimit()
      • 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<T,​SplitT extends FileSourceSplit>
      • getProducedType

        public org.apache.flink.api.common.typeinfo.TypeInformation<T> getProducedType()
        Description copied from interface: BulkFormat
        Gets the type produced by this format. This type will be the type produced by the file source as a whole.
        Specified by:
        getProducedType in interface BulkFormat<T,​SplitT extends FileSourceSplit>
        Specified by:
        getProducedType in interface org.apache.flink.api.java.typeutils.ResultTypeQueryable<T>