public class SortValuesSet extends Object
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(long entryID,
org.forgerock.opendj.ldap.ByteString[] values,
AttributeType[] types)
Add the given entryID and values from this VLV index.
|
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.
|
org.forgerock.opendj.ldap.ByteString |
getValue(int index)
Retrieve an attribute value from this values set.
|
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.
|
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.public boolean add(long entryID, org.forgerock.opendj.ldap.ByteString[] values, AttributeType[] types) throws com.sleepycat.je.DatabaseException, DirectoryException
entryID
- The entry ID to add.values
- The values to add.types
- The types of the values to add.DirectoryException
- If a Directory Server error occurs.com.sleepycat.je.DatabaseException
- 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 com.sleepycat.je.DatabaseException, DirectoryException
DirectoryException
- If a Directory Server error occurs.com.sleepycat.je.DatabaseException
- If an error occurs in the JE database.public SortValues getKeySortValues() throws com.sleepycat.je.DatabaseException, DirectoryException
DirectoryException
- If a Directory Server error occurs.com.sleepycat.je.DatabaseException
- 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 org.forgerock.opendj.ldap.ByteString getValue(int index) throws 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.Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.