Interface RowSetBuilderRandom

All Known Implementing Classes:
AdaptiveRowSetBuilderRandom, BitmapRandomBuilder, PrecomputedRowSetBuilderRandom

public interface RowSetBuilderRandom
Builder interface for RowSet construction in arbitrary order.
  • Method Details

    • build

      Build the WritableRowSet from the accumulated row keys. Builders are single use: at most one build call is permitted, and subsequent calls throw IllegalStateException. The effect of providing further row keys after building is undefined.
      Returns:
      The built RowSet
    • addKey

      void addKey(long rowKey)
    • addRange

      void addRange(long firstRowKey, long lastRowKey)
    • addKeys

      default void addKeys(PrimitiveIterator.OfLong it)
    • addRanges

      default void addRanges(LongRangeIterator it)
    • addRowKeysChunk

      default void addRowKeysChunk(LongChunk<? extends RowKeys> chunk)
    • addRowKeysChunk

      default void addRowKeysChunk(IntChunk<? extends RowKeys> chunk)
    • addOrderedRowKeysChunk

      default void addOrderedRowKeysChunk(LongChunk<? extends OrderedRowKeys> chunk)
    • addOrderedRowKeysChunk

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

      default void addOrderedRowKeysChunk(IntChunk<? extends OrderedRowKeys> chunk)
    • addRowSet

      default void addRowSet(RowSet rowSet)
      Add every row key in rowSet.
      Parameters:
      rowSet - The row set to add