Interface RowSetBuilderSequential

All Superinterfaces:
LongRangeConsumer, gnu.trove.procedure.TLongProcedure
All Known Implementing Classes:
BasicRowSetBuilderSequential

public interface RowSetBuilderSequential extends gnu.trove.procedure.TLongProcedure, LongRangeConsumer
Builder interface for RowSet construction in strict sequential order.
  • Method Details

    • setDomain

      default void setDomain(long minRowKey, long maxRowKey)
      Hint to call, but if called, (a) should be called before providing any values, and (b) no value should be provided outside the domain. Implementations may be able to use this information to improve memory utilization. Either of the arguments may be given as RowSequence.NULL_ROW_KEY, indicating that the respective value is not known.
      Parameters:
      minRowKey - The minimum row key to be provided, or RowSequence.NULL_ROW_KEY if not known
      maxRowKey - The maximum row key to be provided, or RowSequence.NULL_ROW_KEY if not known
    • build

    • appendKey

      void appendKey(long rowKey)
    • appendRange

      void appendRange(long rangeFirstRowKey, long rangeLastRowKey)
    • appendKeys

      default void appendKeys(PrimitiveIterator.OfLong it)
    • appendOrderedRowKeysChunk

      default void appendOrderedRowKeysChunk(LongChunk<OrderedRowKeys> chunk)
    • appendOrderedRowKeysChunk

      default void appendOrderedRowKeysChunk(LongChunk<OrderedRowKeys> chunk, int offset, int length)
    • appendRanges

      default void appendRanges(LongRangeIterator it)
    • appendOrderedRowKeyRangesChunk

      default void appendOrderedRowKeyRangesChunk(LongChunk<OrderedRowKeyRanges> chunk)
    • execute

      default boolean execute(long value)
      Specified by:
      execute in interface gnu.trove.procedure.TLongProcedure
    • appendRowSequence

      default void appendRowSequence(RowSequence rowSequence)
      Appends a RowSequence to this builder.
      Parameters:
      rowSequence - The RowSequence to append
    • appendRowSequenceWithOffset

      default void appendRowSequenceWithOffset(RowSequence rowSequence, long offset)
      Appends a RowSequence shifted by the provided offset to this builder.
      Parameters:
      rowSequence - The RowSequence to append
      offset - An offset to apply to every range in the RowSet