org.apache.directory.server.xdbm
Class ReverseIndexEntry<V,O,ID>

java.lang.Object
  extended by org.apache.directory.server.xdbm.ReverseIndexEntry<V,O,ID>
All Implemented Interfaces:
IndexEntry<V,O,ID>

public class ReverseIndexEntry<V,O,ID>
extends java.lang.Object
implements IndexEntry<V,O,ID>

An index id value pair which can optionally reference the indexed obj if one has already been loaded.

Version:
$Rev: 917312 $
Author:
Apache Directory Project

Constructor Summary
ReverseIndexEntry()
           
 
Method Summary
 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.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReverseIndexEntry

public ReverseIndexEntry()
Method Detail

setTuple

public 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.

Parameters:
tuple - the tuple for the ReverseIndexEntry
obj - the resusitated object that is indexed if any

getId

public ID getId()
Description copied from interface: IndexEntry
Gets the id of the object indexed.

Specified by:
getId in interface IndexEntry<V,O,ID>
Returns:
the id of the object indexed

getValue

public V getValue()
Description copied from interface: IndexEntry
Gets the value referred to by this IndexEntry.

Specified by:
getValue in interface IndexEntry<V,O,ID>
Returns:
the value of the object referred to

setId

public void setId(ID id)
Description copied from interface: IndexEntry
Sets the id of the object indexed.

Specified by:
setId in interface IndexEntry<V,O,ID>
Parameters:
id - the id of the object indexed

setValue

public void setValue(V key)
Description copied from interface: IndexEntry
Sets the value referred to by this IndexEntry.

Specified by:
setValue in interface IndexEntry<V,O,ID>
Parameters:
key - the value of the object referred to

getObject

public O getObject()
Description copied from interface: IndexEntry
Gets the object indexed if resusitated.

Specified by:
getObject in interface IndexEntry<V,O,ID>
Returns:
the object indexed

setObject

public void setObject(O obj)
Description copied from interface: IndexEntry
Sets the object indexed.

Specified by:
setObject in interface IndexEntry<V,O,ID>
Parameters:
obj - the object indexed

getTuple

public Tuple<ID,V> getTuple()
Description copied from interface: IndexEntry
Gets access to the underlying tuple.

Specified by:
getTuple in interface IndexEntry<V,O,ID>
Returns:
the underlying tuple

clear

public void clear()
Description copied from interface: IndexEntry
Clears the id, value and object in this IndexEntry.

Specified by:
clear in interface IndexEntry<V,O,ID>

copy

public void copy(IndexEntry<V,O,ID> entry)
Description copied from interface: IndexEntry
Copies the values of another IndexEntry into this IndexEntry.

Specified by:
copy in interface IndexEntry<V,O,ID>
Parameters:
entry - the entry to copy fields of

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.