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
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
Fields inherited from interface com.illumon.iris.db.v2.ReverseLookup
NULL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGets the index value where key exists in the table, or the no-entry-value if it is not found in the table.String[]longReturns the value that will be returned fromReverseLookup.get(java.lang.Object)or if no entry exists for a given key.longGets 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
-
Null
-
-
Method Details
-
get
Description copied from interface:ReverseLookupGets the index value where key exists in the table, or the no-entry-value if it is not found in the table.- Specified by:
getin interfaceReverseLookup- Parameters:
key- a single object for a single column, or aSmartKeyfor multiple columns- Returns:
- the row index where key exists in the table
-
getPrev
Description copied from interface:ReverseLookupGets 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:
getPrevin interfaceReverseLookup- Parameters:
key- a single object for a single column, or aSmartKeyfor multiple columns- Returns:
- the row index where key previously existed in the table
-
getNoEntryValue
public long getNoEntryValue()Description copied from interface:ReverseLookupReturns the value that will be returned fromReverseLookup.get(java.lang.Object)or if no entry exists for a given key.- Specified by:
getNoEntryValuein interfaceReverseLookup
-
getKeyColumns
- Specified by:
getKeyColumnsin interfaceReverseLookup- Returns:
- the key columns this reverse lookup is indexed on
-