|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.directory.server.core.partition.impl.btree.IndexRecord
public class IndexRecord
An index key value pair based on a tuple which can optionally reference the indexed entry if one has been resusitated.
| Constructor Summary | |
|---|---|
IndexRecord()
|
|
| Method Summary | |
|---|---|
void |
clear()
Clears the tuple key, the tuple value and the entry fields. |
void |
copy(IndexRecord record)
Utility method used to copy the contents of one IndexRecord into this IndexRecord. |
javax.naming.directory.Attributes |
getAttributes()
Gets the entry of this IndexRecord if one was resusitated form the master table. |
java.lang.Object |
getEntryId()
Gets the entry id for this IndexRecord. |
java.lang.Object |
getIndexKey()
Gets the index key ( the attribute's value ) for this IndexRecord. |
void |
setAttributes(javax.naming.directory.Attributes entry)
Sets the entry's attributes. |
void |
setEntryId(java.lang.Object id)
Sets the entry id. |
void |
setIndexKey(java.lang.Object key)
Sets the index key. |
void |
setSwapped(Tuple tuple,
javax.naming.directory.Attributes entry)
Sets the key value tuple but swapping the key and the value and optionally adding the entry if one was resusitated. |
void |
setTuple(Tuple tuple,
javax.naming.directory.Attributes entry)
Sets the key value tuple represented by this IndexRecord optionally setting the entry if one was resusitated from the master table. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndexRecord()
| Method Detail |
|---|
public void setTuple(Tuple tuple,
javax.naming.directory.Attributes entry)
tuple - the tuple for the IndexRecordentry - the resusitated entry if any
public void setSwapped(Tuple tuple,
javax.naming.directory.Attributes entry)
tuple - the tuple for the IndexRecordentry - the resusitated entry if anypublic java.lang.Object getEntryId()
public java.lang.Object getIndexKey()
public void setEntryId(java.lang.Object id)
id - the id of the entrypublic void setIndexKey(java.lang.Object key)
key - the key of the IndexRecordpublic javax.naming.directory.Attributes getAttributes()
public void setAttributes(javax.naming.directory.Attributes entry)
entry - the entry's attributespublic void clear()
public void copy(IndexRecord record)
record - the record whose contents we copy
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||