public class ForwardIndexEntry<V,O,ID> extends Object implements IndexEntry<V,O,ID>
Constructor and Description |
---|
ForwardIndexEntry() |
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<V,ID> |
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<V,ID> tuple,
O entry)
Sets the key value tuple represented by this ForwardIndexEntry optionally
setting the obj associated with the id if one was loaded from the
master table.
|
void |
setValue(V value)
Sets the value referred to by this IndexEntry.
|
String |
toString() |
public void setTuple(Tuple<V,ID> tuple, O entry)
tuple
- the tuple for the ForwardIndexEntryentry
- the resusitated obj if anypublic ID getId()
IndexEntry
getId
in interface IndexEntry<V,O,ID>
public V getValue()
IndexEntry
getValue
in interface IndexEntry<V,O,ID>
public void setId(ID id)
IndexEntry
setId
in interface IndexEntry<V,O,ID>
id
- the id of the object indexedpublic void setValue(V value)
IndexEntry
setValue
in interface IndexEntry<V,O,ID>
value
- the value of the object referred topublic O getObject()
IndexEntry
getObject
in interface IndexEntry<V,O,ID>
public void setObject(O obj)
IndexEntry
setObject
in interface IndexEntry<V,O,ID>
obj
- the object indexedpublic Tuple<V,ID> getTuple()
IndexEntry
getTuple
in interface IndexEntry<V,O,ID>
public void clear()
IndexEntry
clear
in interface IndexEntry<V,O,ID>
public void copy(IndexEntry<V,O,ID> entry)
IndexEntry
copy
in interface IndexEntry<V,O,ID>
entry
- the entry to copy fields ofCopyright © 2003-2013 Apache Software Foundation. All Rights Reserved.