com.sun.labs.minion.indexer.postings.io
Interface PostingsInput
- All Known Implementing Classes:
- ChannelPostingsInput, FileBackedPostingsInput, FilePostingsInput, StreamPostingsInput
public interface PostingsInput
An interface for things that can be used to read postings.
|
Method Summary |
ReadableBuffer |
read(long offset,
int size)
Reads a set of postings, returning them in a buffer suitable for
decoding. |
read
ReadableBuffer read(long offset,
int size)
throws java.io.IOException
- Reads a set of postings, returning them in a buffer suitable for
decoding.
- Parameters:
offset - The offset in the input at which the postings can be
found.size - The number of bytes to read to get the postings.
- Returns:
- A readable buffer containing the postings.
- Throws:
java.io.IOException - if there is any error reading the
postings.