public interface HandleSet
extends java.lang.Iterable<byte[]>, java.lang.Cloneable, java.io.Serializable
Modifier and Type | Method and Description |
---|---|
void |
clear() |
HandleSet |
clone() |
void |
close() |
ByteOrder |
comparator() |
int |
dump(java.io.File file)
write a dump of the set to a file.
|
void |
excludeDestructive(java.util.Set<byte[]> other) |
byte[] |
export() |
byte[] |
getOne(int idx)
get one entry; objects are taken from the end of the list
a getOne(0) would return the same object as removeOne() would remove
|
boolean |
has(byte[] key) |
boolean |
isEmpty() |
java.util.Iterator<byte[]> |
iterator() |
int |
keylen() |
CloneableIterator<byte[]> |
keys(boolean up,
byte[] firstKey) |
byte[] |
largestKey() |
void |
optimize() |
boolean |
put(byte[] key)
Adds the key to the set
|
void |
putAll(HandleSet aset) |
void |
putUnique(byte[] key) |
boolean |
remove(byte[] key) |
byte[] |
removeOne() |
int |
size() |
byte[] |
smallestKey() |
HandleSet clone()
byte[] export()
void optimize()
int dump(java.io.File file) throws java.io.IOException
file
- java.io.IOException
byte[] smallestKey()
byte[] largestKey()
ByteOrder comparator()
void clear()
boolean has(byte[] key)
void putAll(HandleSet aset) throws SpaceExceededException
SpaceExceededException
boolean put(byte[] key) throws SpaceExceededException
key
- java.io.IOException
SpaceExceededException
void putUnique(byte[] key) throws SpaceExceededException
SpaceExceededException
boolean remove(byte[] key)
byte[] removeOne()
byte[] getOne(int idx)
idx
- boolean isEmpty()
int size()
int keylen()
CloneableIterator<byte[]> keys(boolean up, byte[] firstKey)
void excludeDestructive(java.util.Set<byte[]> other)
java.util.Iterator<byte[]> iterator()
iterator
in interface java.lang.Iterable<byte[]>
void close()