Class ReverseLookup.Null

java.lang.Object
com.illumon.iris.db.v2.ReverseLookup.Null
All Implemented Interfaces:
ReverseLookup
Enclosing interface:
ReverseLookup

public static class ReverseLookup.Null
extends Object
implements ReverseLookup
A null implementation of a reverse lookup, suitable for a table without any key columns.
  • Constructor Details

  • Method Details

    • get

      public long get​(Object key)
      Description copied from interface: ReverseLookup
      Gets the index value where key exists in the table, or the no-entry-value if it is not found in the table.
      Specified by:
      get in interface ReverseLookup
      Parameters:
      key - a single object for a single column, or a SmartKey for multiple columns
      Returns:
      the row index where key exists in the table
    • getPrev

      public long getPrev​(Object key)
      Description copied from interface: ReverseLookup
      Gets the index value where key previously in the table, or the no-entry-value if it is was not found in the table.
      Specified by:
      getPrev in interface ReverseLookup
      Parameters:
      key - a single object for a single column, or a SmartKey for multiple columns
      Returns:
      the row index where key previously existed in the table
    • getNoEntryValue

      public long getNoEntryValue()
      Description copied from interface: ReverseLookup
      Returns the value that will be returned from ReverseLookup.get(java.lang.Object) or if no entry exists for a given key.
      Specified by:
      getNoEntryValue in interface ReverseLookup
    • getKeyColumns

      public String[] getKeyColumns()
      Specified by:
      getKeyColumns in interface ReverseLookup
      Returns:
      the key columns this reverse lookup is indexed on