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()
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 key)
IndexEntry
setValue
in interface IndexEntry<V,O,ID>
key
- 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<ID,V> 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 The Apache Software Foundation. All rights reserved.