public class Lucene40SkipListWriter extends MultiLevelSkipListWriter
Lucene40PostingsFormat
numberOfSkipLevels
Constructor and Description |
---|
Lucene40SkipListWriter(int skipInterval,
int numberOfSkipLevels,
int docCount,
IndexOutput freqOutput,
IndexOutput proxOutput)
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
resetSkip()
Creates new buffers or empties the existing ones
|
void |
setSkipData(int doc,
boolean storePayloads,
int payloadLength,
boolean storeOffsets,
int offsetLength)
Sets the values for the current skip data.
|
protected void |
writeSkipData(int level,
IndexOutput skipBuffer)
Subclasses must implement the actual skip data encoding in this method.
|
bufferSkip, init, writeSkip
public Lucene40SkipListWriter(int skipInterval, int numberOfSkipLevels, int docCount, IndexOutput freqOutput, IndexOutput proxOutput)
public void setSkipData(int doc, boolean storePayloads, int payloadLength, boolean storeOffsets, int offsetLength)
public void resetSkip()
MultiLevelSkipListWriter
resetSkip
in class MultiLevelSkipListWriter
protected void writeSkipData(int level, IndexOutput skipBuffer) throws IOException
MultiLevelSkipListWriter
writeSkipData
in class MultiLevelSkipListWriter
level
- the level skip data shall be writing forskipBuffer
- the skip buffer to write toIOException
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.