|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.backends.jeb.SortValuesSet
public class SortValuesSet
This class representsa partial sorted set of sorted entries in a VLV index.
Constructor Summary | |
---|---|
SortValuesSet(byte[] keyBytes,
byte[] dataBytes,
VLVIndex vlvIndex)
Construct a sort values set from the database. |
|
SortValuesSet(VLVIndex vlvIndex)
Construct an empty sort values set with the given information. |
Method Summary | |
---|---|
boolean |
add(long entryID,
AttributeValue[] values)
Add the given entryID and values from this VLV idnex. |
static long[] |
getEncodedIDs(byte[] bytes,
int offset)
Get the IDs from the provided encoded set. |
static int |
getEncodedSize(byte[] bytes,
int offset)
Get the size of the provided encoded set. |
long[] |
getEntryIDs()
Retrieve the entry IDs in this set. |
byte[] |
getKeyBytes()
Returns the key to use for this set of sort values in the database. |
SortValues |
getKeySortValues()
Returns the key to use for this set of sort values in the database. |
SortValues |
getSortValues(int index)
Returns the sort values at the index in this set. |
byte[] |
getValue(int index)
Retrieve an attribute value from this values set. |
boolean |
remove(long entryID,
AttributeValue[] values)
Remove the given entryID and values from this VLV idnex. |
int |
size()
Retrieve the size of this set. |
SortValuesSet |
split(int splitLength)
Split portions of this set into another set. |
byte[] |
toDatabase()
Encode this set to its database format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SortValuesSet(VLVIndex vlvIndex)
vlvIndex
- The VLV index using this set.public SortValuesSet(byte[] keyBytes, byte[] dataBytes, VLVIndex vlvIndex)
keyBytes
- The database key used to locate this set.dataBytes
- The bytes to decode and construct this set.vlvIndex
- The VLV index using this set.Method Detail |
---|
public boolean add(long entryID, AttributeValue[] values) throws JebException, com.sleepycat.je.DatabaseException, DirectoryException
entryID
- The entry ID to add.values
- The values to add.
DirectoryException
- If a Directory Server error occurs.
com.sleepycat.je.DatabaseException
- If an error occurs in the JE database.
JebException
- If an error occurs in the JE database.public boolean remove(long entryID, AttributeValue[] values) throws JebException, com.sleepycat.je.DatabaseException, DirectoryException
entryID
- The entry ID to remove.values
- The values to remove.
DirectoryException
- If a Directory Server error occurs.
com.sleepycat.je.DatabaseException
- If an error occurs in the JE database.
JebException
- If an error occurs in the JE database.public SortValuesSet split(int splitLength)
splitLength
- The size of the new set.
public byte[] toDatabase()
public static int getEncodedSize(byte[] bytes, int offset)
bytes
- The encoded bytes of a SortValuesSet to decode the size from.offset
- The byte offset to start decoding.
public static long[] getEncodedIDs(byte[] bytes, int offset)
bytes
- The encoded bytes of a SortValuesSet to decode the IDs from.offset
- The byte offset to start decoding.
public int size()
public long[] getEntryIDs()
public byte[] getKeyBytes() throws JebException, com.sleepycat.je.DatabaseException, DirectoryException
DirectoryException
- If a Directory Server error occurs.
com.sleepycat.je.DatabaseException
- If an error occurs in the JE database.
JebException
- If an error occurs in the JE database.public SortValues getKeySortValues() throws JebException, com.sleepycat.je.DatabaseException, DirectoryException
DirectoryException
- If a Directory Server error occurs.
com.sleepycat.je.DatabaseException
- If an error occurs in the JE database.
JebException
- If an error occurs in the JE database.public SortValues getSortValues(int index) throws JebException, com.sleepycat.je.DatabaseException, DirectoryException
index
- The index of the sort values to get.
DirectoryException
- If a Directory Server error occurs.
com.sleepycat.je.DatabaseException
- If an error occurs in the JE database.
JebException
- If an error occurs in the JE database.public byte[] getValue(int index) throws JebException, com.sleepycat.je.DatabaseException, DirectoryException
index
- The vlvIndex of the attribute value to retrieve.
DirectoryException
- If a Directory Server error occurs.
com.sleepycat.je.DatabaseException
- If an error occurs in the JE database.
JebException
- If an error occurs in the JE database.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |