|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PostingsOutput
An interface to be implemented by things that write postings.
| Method Summary | |
|---|---|
void |
flush()
Flushes any buffered output to the underlying storage. |
long |
position()
Gets the position of the current output. |
int |
write(WriteableBuffer b)
Writes out the given buffer of postings. |
long |
write(WriteableBuffer[] b)
Writes a set of postings encoded onto a number of buffers. |
long |
write(WriteableBuffer[] b,
int offset,
int length)
Writes a subsequence of a set of postings encoded onto a number of buffers to the output. |
| Method Detail |
|---|
int write(WriteableBuffer b)
throws java.io.IOException
b - A buffer of postings to write.
java.io.IOException - if there is any error writing the
postings.
long write(WriteableBuffer[] b)
throws java.io.IOException
b - The buffers to write.
java.io.IOException - if there is any error writing the
postings.
long write(WriteableBuffer[] b,
int offset,
int length)
throws java.io.IOException
b - The buffers to write.offset - The offset in b where we will begin
writing bytes.length - The length of the subsequence of b for
which we will write postings.
java.io.IOException - if there is any error writing the
postings.
long position()
throws java.io.IOException
java.io.IOException - if there is any error.
void flush()
throws java.io.IOException
java.io.IOException - if there is any error flushing the
postings.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||