public interface Index extends java.lang.Iterable<Row.Entry>
Modifier and Type | Method and Description |
---|---|
void |
addUnique(Row.Entry row) |
void |
clear() |
void |
close() |
boolean |
delete(byte[] key) |
void |
deleteOnExit() |
java.lang.String |
filename() |
Row.Entry |
get(byte[] key,
boolean forcecopy) |
java.util.Map<byte[],Row.Entry> |
get(java.util.Collection<byte[]> keys,
boolean forcecopy) |
boolean |
has(byte[] key) |
boolean |
isEmpty() |
java.util.Iterator<Row.Entry> |
iterator() |
CloneableIterator<byte[]> |
keys(boolean up,
byte[] firstKey) |
byte[] |
largestKey() |
long |
mem() |
void |
optimize() |
boolean |
put(Row.Entry row)
Adds the row to the index.
|
java.util.List<Row.Entry> |
random(int count) |
Row.Entry |
remove(byte[] key) |
java.util.List<RowCollection> |
removeDoubles() |
Row.Entry |
removeOne() |
Row.Entry |
replace(Row.Entry row) |
Row |
row() |
CloneableIterator<Row.Entry> |
rows() |
CloneableIterator<Row.Entry> |
rows(boolean up,
byte[] firstKey) |
int |
size() |
byte[] |
smallestKey() |
java.util.List<Row.Entry> |
top(int count) |
java.lang.String filename()
int size()
void optimize()
long mem()
boolean isEmpty()
Row row()
byte[] smallestKey()
byte[] largestKey()
boolean has(byte[] key)
java.util.Map<byte[],Row.Entry> get(java.util.Collection<byte[]> keys, boolean forcecopy) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
Row.Entry get(byte[] key, boolean forcecopy) throws java.io.IOException
java.io.IOException
Row.Entry replace(Row.Entry row) throws SpaceExceededException, java.io.IOException
SpaceExceededException
java.io.IOException
boolean put(Row.Entry row) throws java.io.IOException, SpaceExceededException
row
- a index rowjava.io.IOException
SpaceExceededException
void addUnique(Row.Entry row) throws SpaceExceededException, java.io.IOException
SpaceExceededException
java.io.IOException
java.util.List<RowCollection> removeDoubles() throws java.io.IOException, SpaceExceededException
java.io.IOException
SpaceExceededException
boolean delete(byte[] key) throws java.io.IOException
java.io.IOException
Row.Entry remove(byte[] key) throws java.io.IOException
java.io.IOException
Row.Entry removeOne() throws java.io.IOException
java.io.IOException
java.util.List<Row.Entry> top(int count) throws java.io.IOException
java.io.IOException
java.util.List<Row.Entry> random(int count) throws java.io.IOException
java.io.IOException
CloneableIterator<byte[]> keys(boolean up, byte[] firstKey) throws java.io.IOException
java.io.IOException
CloneableIterator<Row.Entry> rows(boolean up, byte[] firstKey) throws java.io.IOException
java.io.IOException
CloneableIterator<Row.Entry> rows() throws java.io.IOException
java.io.IOException
java.util.Iterator<Row.Entry> iterator()
iterator
in interface java.lang.Iterable<Row.Entry>
void deleteOnExit()
void clear() throws java.io.IOException
java.io.IOException
void close()