Class IndexSnapshot

java.lang.Object
io.trino.operator.index.IndexSnapshot
All Implemented Interfaces:
IndexedData, Closeable, AutoCloseable

@Immutable public class IndexSnapshot extends Object implements IndexedData
  • Constructor Details

  • Method Details

    • getJoinPosition

      public long getJoinPosition(int position, Page page)
      Description copied from interface: IndexedData
      Returns UNLOADED_INDEX_KEY if the key has not been loaded. Returns NO_MORE_POSITIONS if the key has been loaded, but has no values. Returns a valid address if the key has been loaded and has values.
      Specified by:
      getJoinPosition in interface IndexedData
    • getNextJoinPosition

      public long getNextJoinPosition(long currentPosition)
      Description copied from interface: IndexedData
      Returns the next address to join. Returns NO_MORE_POSITIONS if there are no more values to join.
      Specified by:
      getNextJoinPosition in interface IndexedData
    • appendTo

      public void appendTo(long position, PageBuilder pageBuilder, int outputChannelOffset)
      Specified by:
      appendTo in interface IndexedData
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface IndexedData