protected class PosBlockIndexOutput.PosBlockWriter extends BlockIndexOutput.BlockWriter
BlockWriter for the .pos file.
Encode and write blocks containing the term positions.
| Constructor and Description |
|---|
PosBlockIndexOutput.PosBlockWriter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
compress()
Compress the data block
|
protected void |
initBlock()
Init writer for new block
|
boolean |
isEmpty() |
boolean |
isFull() |
void |
resetCurrentPosition() |
void |
write(int pos)
Add the term position to the buffer
|
protected void |
writeData()
Write compressed data block to the output file
|
protected void |
writeHeader()
Write block header to the output file
|
flush, getMinimumBufferSize, writeBlockprotected void writeHeader()
throws IOException
BlockIndexOutput.BlockWriterwriteHeader in class BlockIndexOutput.BlockWriterIOExceptionprotected void compress()
BlockIndexOutput.BlockWritercompress in class BlockIndexOutput.BlockWriterprotected void writeData()
throws IOException
BlockIndexOutput.BlockWriterwriteData in class BlockIndexOutput.BlockWriterIOExceptionpublic void write(int pos)
protected void initBlock()
BlockIndexOutput.BlockWriterinitBlock in class BlockIndexOutput.BlockWriterpublic void resetCurrentPosition()
public boolean isEmpty()
isEmpty in class BlockIndexOutput.BlockWriterpublic boolean isFull()
isFull in class BlockIndexOutput.BlockWriterCopyright © 2014. All rights reserved.