public interface SparkeyReader extends Iterable<SparkeyReader.Entry>
Modifier and Type | Interface and Description |
---|---|
static interface |
SparkeyReader.Entry |
static class |
SparkeyReader.Type |
Modifier and Type | Method and Description |
---|---|
void |
close() |
SparkeyReader |
duplicate()
Create a duplicate of the reader.
|
byte[] |
getAsByteArray(byte[] key) |
SparkeyReader.Entry |
getAsEntry(byte[] key)
This is mostly useful for retrieving large values that don't fit in a byte array.
|
String |
getAsString(String key) |
IndexHeader |
getIndexHeader() |
LogHeader |
getLogHeader() |
Iterator<SparkeyReader.Entry> |
iterator()
Get an iterator over all the live entries.
|
String getAsString(String key) throws IOException
key
- the key to search for, interpreted as an UTF-8 string.IOException
byte[] getAsByteArray(byte[] key) throws IOException
key
- the key to search forIOException
SparkeyReader.Entry getAsEntry(byte[] key) throws IOException
key
- the key to search forIOException
void close() throws IOException
IOException
IndexHeader getIndexHeader()
LogHeader getLogHeader()
SparkeyReader duplicate()
Iterator<SparkeyReader.Entry> iterator()
iterator
in interface Iterable<SparkeyReader.Entry>
Copyright © 2013. All rights reserved.