|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.backends.jeb.MergeValue
public class MergeValue
This is a class used by the index merge thread. It merges the data for one index key from multiple intermediate files.
Constructor Summary | |
---|---|
MergeValue(int numReaders,
int entryLimit)
Create a new merge value. |
Method Summary | |
---|---|
java.util.List<Longs> |
getAddValues()
Get the list of arrays of IDs to be added. |
java.util.List<Longs> |
getDelValues()
Get the list of arrays of IDs to be deleted. |
byte[] |
getKey()
Get the value of the key. |
int[] |
getReaders()
Get the readers that provided data to be merged. |
void |
mergeData(int reader,
Longs addData,
Longs delData)
Provide data for the key from one of the file readers. |
void |
setKey(byte[] key)
Set the value of the key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MergeValue(int numReaders, int entryLimit)
numReaders
- The total number of file readers that could be
contributing to this value. Reader identifiers are in the range
0 .. numReaders-1.entryLimit
- The configured index entry limit.Method Detail |
---|
public byte[] getKey()
public void setKey(byte[] key)
key
- The key value .public void mergeData(int reader, Longs addData, Longs delData)
reader
- The reader providing the data.addData
- A set of entry IDs to be added.delData
- A set of entry IDs to be deleted.public int[] getReaders()
public java.util.List<Longs> getAddValues()
public java.util.List<Longs> getDelValues()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |