Interface PositionDeleteIndex


public interface PositionDeleteIndex
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(long position)
    Set a deleted row position.
    void
    delete(long posStart, long posEnd)
    Set a range of deleted row positions.
    Returns delete files that this index was created from or an empty collection if unknown.
    Returns an empty immutable position delete index.
    default void
    Traverses all positions in the index in ascending order, applying the provided consumer.
    boolean
    isDeleted(long position)
    Checks whether a row at the position is deleted.
    boolean
    Returns true if this collection contains no element.
    default boolean
    Returns true if this collection contains elements.
    default void
    Adds positions from the other index, modifying this index in place.
  • Method Details

    • delete

      void delete(long position)
      Set a deleted row position.
      Parameters:
      position - the deleted row position
    • delete

      void delete(long posStart, long posEnd)
      Set a range of deleted row positions.
      Parameters:
      posStart - inclusive beginning of position range
      posEnd - exclusive ending of position range
    • merge

      default void merge(PositionDeleteIndex that)
      Adds positions from the other index, modifying this index in place.
      Parameters:
      that - the other index to merge
    • isDeleted

      boolean isDeleted(long position)
      Checks whether a row at the position is deleted.
      Parameters:
      position - deleted row position
      Returns:
      whether the position is deleted
    • isEmpty

      boolean isEmpty()
      Returns true if this collection contains no element.
    • isNotEmpty

      default boolean isNotEmpty()
      Returns true if this collection contains elements.
    • forEach

      default void forEach(LongConsumer consumer)
      Traverses all positions in the index in ascending order, applying the provided consumer.
      Parameters:
      consumer - a consumer for the positions
    • deleteFiles

      default Collection<DeleteFile> deleteFiles()
      Returns delete files that this index was created from or an empty collection if unknown.
      Returns:
      delete files that this index was created from
    • empty

      static PositionDeleteIndex empty()
      Returns an empty immutable position delete index.