Class MutableRecordAndPosition<E>


  • @PublicEvolving
    public class MutableRecordAndPosition<E>
    extends RecordAndPosition<E>
    A mutable version of the RecordAndPosition.

    This mutable object is useful in cases where only once instance of a RecordAndPosition is needed at a time, like for the result values of the BulkFormat.RecordIterator.

    • Constructor Detail

      • MutableRecordAndPosition

        public MutableRecordAndPosition()
    • Method Detail

      • set

        public void set​(E record,
                        long offset,
                        long recordSkipCount)
        Updates the record and position in this object.
      • setPosition

        public void setPosition​(long offset,
                                long recordSkipCount)
        Sets the position without setting a record.
      • setNext

        public void setNext​(E record)
        Sets the next record of a sequence. This increments the recordSkipCount by one.