public interface HandleMap
extends java.lang.Iterable<java.util.Map.Entry<byte[],java.lang.Long>>
Modifier and Type | Method and Description |
---|---|
long |
add(byte[] key,
long a) |
void |
clear() |
void |
close() |
long |
dec(byte[] key) |
int |
dump(java.io.File file)
write a dump of the index to a file.
|
long |
get(byte[] key) |
boolean |
has(byte[] key) |
long |
inc(byte[] key) |
boolean |
isEmpty() |
CloneableIterator<byte[]> |
keys(boolean up,
byte[] firstKey) |
byte[] |
largestKey() |
long |
mem() |
void |
optimize() |
long |
put(byte[] key,
long l)
Adds the key-value pair to the index.
|
void |
putUnique(byte[] key,
long l) |
long |
remove(byte[] key) |
java.util.ArrayList<long[]> |
removeDoubles() |
long |
removeone() |
int |
size() |
byte[] |
smallestKey() |
java.util.ArrayList<byte[]> |
top(int count) |
long mem()
void optimize()
int dump(java.io.File file) throws java.io.IOException
file
- java.io.IOException
void clear()
byte[] smallestKey()
byte[] largestKey()
boolean has(byte[] key)
long get(byte[] key)
long put(byte[] key, long l) throws SpaceExceededException
key
- the index keyl
- the valuejava.io.IOException
SpaceExceededException
void putUnique(byte[] key, long l) throws SpaceExceededException
SpaceExceededException
long add(byte[] key, long a) throws SpaceExceededException
SpaceExceededException
long inc(byte[] key) throws SpaceExceededException
SpaceExceededException
long dec(byte[] key) throws SpaceExceededException
SpaceExceededException
java.util.ArrayList<long[]> removeDoubles() throws SpaceExceededException
SpaceExceededException
java.util.ArrayList<byte[]> top(int count)
long remove(byte[] key)
long removeone()
int size()
boolean isEmpty()
CloneableIterator<byte[]> keys(boolean up, byte[] firstKey)
void close()