public class ReverseIndexEntry<V,O,ID> extends Object implements IndexEntry<V,O,ID>
| Constructor and Description |
|---|
ReverseIndexEntry() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the id, value and object in this IndexEntry.
|
void |
copy(IndexEntry<V,O,ID> entry)
Copies the values of another IndexEntry into this IndexEntry.
|
ID |
getId()
Gets the id of the object indexed.
|
O |
getObject()
Gets the object indexed if resusitated.
|
Tuple<ID,V> |
getTuple()
Gets access to the underlying tuple.
|
V |
getValue()
Gets the value referred to by this IndexEntry.
|
void |
setId(ID id)
Sets the id of the object indexed.
|
void |
setObject(O obj)
Sets the object indexed.
|
void |
setTuple(Tuple<ID,V> tuple,
O obj)
Sets the Tuple value represented by this ReverseIndexEntry optionally
setting the obj associated with the id if one was loaded from the
master table.
|
void |
setValue(V key)
Sets the value referred to by this IndexEntry.
|
String |
toString() |
public void setTuple(Tuple<ID,V> tuple, O obj)
tuple - the tuple for the ReverseIndexEntryobj - the resusitated object that is indexed if anypublic ID getId()
IndexEntrygetId in interface IndexEntry<V,O,ID>public V getValue()
IndexEntrygetValue in interface IndexEntry<V,O,ID>public void setId(ID id)
IndexEntrysetId in interface IndexEntry<V,O,ID>id - the id of the object indexedpublic void setValue(V key)
IndexEntrysetValue in interface IndexEntry<V,O,ID>key - the value of the object referred topublic O getObject()
IndexEntrygetObject in interface IndexEntry<V,O,ID>public void setObject(O obj)
IndexEntrysetObject in interface IndexEntry<V,O,ID>obj - the object indexedpublic Tuple<ID,V> getTuple()
IndexEntrygetTuple in interface IndexEntry<V,O,ID>public void clear()
IndexEntryclear in interface IndexEntry<V,O,ID>public void copy(IndexEntry<V,O,ID> entry)
IndexEntrycopy in interface IndexEntry<V,O,ID>entry - the entry to copy fields ofCopyright © 2003-2012 Apache Software Foundation. All Rights Reserved.