Package com.illumon.iris.db.v2
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.ReverseLookup
ReverseLookup.Null
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description long
get(Object key)
Gets the index value where key exists in the table, or the no-entry-value if it is not found in the table.String[]
getKeyColumns()
long
getNoEntryValue()
Returns the value that will be returned fromReverseLookup.get(java.lang.Object)
or if no entry exists for a given key.long
getPrev(Object key)
Gets the index value where key previously in the table, or the no-entry-value if it is was not found in the table.
-
Constructor Details
-
Method Details
-
get
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 interfaceReverseLookup
- Parameters:
key
- a single object for a single column, or aSmartKey
for multiple columns- Returns:
- the row index where key exists in the table
-
getPrev
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 interfaceReverseLookup
- Parameters:
key
- a single object for a single column, or aSmartKey
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 fromReverseLookup.get(java.lang.Object)
or if no entry exists for a given key.- Specified by:
getNoEntryValue
in interfaceReverseLookup
-
getKeyColumns
- Specified by:
getKeyColumns
in interfaceReverseLookup
- Returns:
- the key columns this reverse lookup is indexed on
-