Interface StreamFormat.Reader<T>

    • Method Detail

      • read

        @Nullable
        T read()
        throws IOException
        Reads the next record. Returns null when the input has reached its end.
        Throws:
        IOException
      • getCheckpointedPosition

        @Nullable
        default CheckpointedPosition getCheckpointedPosition()
        Optionally returns the current position of the reader. This can be implemented by readers that want to speed up recovery from a checkpoint.

        The current position of the reader is the position of the next record that will be returned in a call to read(). This can be implemented by readers that want to speed up recovery from a checkpoint.

        See the top-level class comment (section "Checkpointing") for details.