Package com.illumon.iris.db.v2
Interface ReverseLookup
- All Known Implementing Classes:
ReverseLookup.Null
,ReverseLookupListener
public interface ReverseLookup
For hierarchical table display, identify the row index key that corresponds to a given logical key.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
A null implementation of a reverse lookup, suitable for a table without any key columns. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionlong
Gets the index value where key exists in the table, or the no-entry-value if it is not found in the table.String[]
long
Returns the value that will be returned fromget(java.lang.Object)
or if no entry exists for a given key.long
Gets the index value where key previously in the table, or the no-entry-value if it is was not found in the table.
-
Field Details
-
NULL
-
-
Method Details
-
get
Gets the index value where key exists in the table, or the no-entry-value if it is not found in the table.- 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
Gets the index value where key previously in the table, or the no-entry-value if it is was not found in the table.- 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
long getNoEntryValue()Returns the value that will be returned fromget(java.lang.Object)
or if no entry exists for a given key. -
getKeyColumns
String[] getKeyColumns()- Returns:
- the key columns this reverse lookup is indexed on
-