public abstract class MultiLevelSkipListWriter extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
numberOfSkipLevels |
| Modifier | Constructor and Description |
|---|---|
protected |
MultiLevelSkipListWriter(int skipInterval,
int maxSkipLevels,
int df) |
| Modifier and Type | Method and Description |
|---|---|
void |
bufferSkip(int df)
Writes the current skip data to the buffers.
|
protected void |
init() |
protected void |
resetSkip() |
long |
writeSkip(IndexOutput output)
Writes the buffered skip lists to the given output.
|
protected abstract void |
writeSkipData(int level,
IndexOutput skipBuffer)
Subclasses must implement the actual skip data encoding in this method.
|
protected MultiLevelSkipListWriter(int skipInterval,
int maxSkipLevels,
int df)
protected void init()
protected void resetSkip()
protected abstract void writeSkipData(int level,
IndexOutput skipBuffer)
throws IOException
level - the level skip data shall be writing forskipBuffer - the skip buffer to write toIOExceptionpublic void bufferSkip(int df)
throws IOException
df - the current document frequencyIOExceptionpublic long writeSkip(IndexOutput output) throws IOException
output - the IndexOutput the skip lists shall be written toIOExceptionCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.