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, writeBlock
protected void writeHeader() throws IOException
BlockIndexOutput.BlockWriter
writeHeader
in class BlockIndexOutput.BlockWriter
IOException
protected void compress()
BlockIndexOutput.BlockWriter
compress
in class BlockIndexOutput.BlockWriter
protected void writeData() throws IOException
BlockIndexOutput.BlockWriter
writeData
in class BlockIndexOutput.BlockWriter
IOException
public void write(int pos)
protected void initBlock()
BlockIndexOutput.BlockWriter
initBlock
in class BlockIndexOutput.BlockWriter
public void resetCurrentPosition()
public boolean isEmpty()
isEmpty
in class BlockIndexOutput.BlockWriter
public boolean isFull()
isFull
in class BlockIndexOutput.BlockWriter
Copyright © 2014. All rights reserved.