Class SimpleTextSkipWriter
java.lang.Object
org.apache.lucene.codecs.MultiLevelSkipListWriter
org.apache.lucene.codecs.simpletext.SimpleTextSkipWriter
plain text skip data.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final int
(package private) static final BytesRef
private CompetitiveImpactAccumulator[]
private int
private long
(package private) static final BytesRef
(package private) static final BytesRef
(package private) static final BytesRef
(package private) static final BytesRef
(package private) static final BytesRef
(package private) static final BytesRef
(package private) static final int
(package private) static final BytesRef
private final BytesRefBuilder
(package private) static final BytesRef
(package private) static final BytesRef
(package private) static final BytesRef
(package private) static final int
Fields inherited from class org.apache.lucene.codecs.MultiLevelSkipListWriter
numberOfSkipLevels
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
bufferSkip
(int doc, long docFilePointer, int numDocs, CompetitiveImpactAccumulator competitiveImpactAccumulator) protected void
Creates new buffers or empties the existing onesprotected void
writeChildPointer
(long childPointer, DataOutput skipBuffer) Writes the child pointer of a block to the given output.protected void
writeLevelLength
(long levelLength, IndexOutput output) Writes the length of a level to the given output.long
writeSkip
(IndexOutput output) Writes the buffered skip lists to the given output.protected void
writeSkipData
(int level, DataOutput skipBuffer) Subclasses must implement the actual skip data encoding in this method.Methods inherited from class org.apache.lucene.codecs.MultiLevelSkipListWriter
bufferSkip, init
-
Field Details
-
skipMultiplier
static final int skipMultiplier- See Also:
-
maxSkipLevels
static final int maxSkipLevels- See Also:
-
BLOCK_SIZE
static final int BLOCK_SIZE- See Also:
-
wroteHeaderPerLevelMap
-
curDoc
private int curDoc -
curDocFilePointer
private long curDocFilePointer -
curCompetitiveFreqNorms
-
scratch
-
SKIP_LIST
-
LEVEL_LENGTH
-
LEVEL
-
SKIP_DOC
-
SKIP_DOC_FP
-
IMPACTS
-
IMPACT
-
FREQ
-
NORM
-
IMPACTS_END
-
CHILD_POINTER
-
-
Constructor Details
-
SimpleTextSkipWriter
SimpleTextSkipWriter(SegmentWriteState writeState) throws IOException - Throws:
IOException
-
-
Method Details
-
writeSkipData
Description copied from class:MultiLevelSkipListWriter
Subclasses must implement the actual skip data encoding in this method.- Specified by:
writeSkipData
in classMultiLevelSkipListWriter
- Parameters:
level
- the level skip data shall be writing forskipBuffer
- the skip buffer to write to- Throws:
IOException
-
resetSkip
protected void resetSkip()Description copied from class:MultiLevelSkipListWriter
Creates new buffers or empties the existing ones- Overrides:
resetSkip
in classMultiLevelSkipListWriter
-
writeSkip
Description copied from class:MultiLevelSkipListWriter
Writes the buffered skip lists to the given output.- Overrides:
writeSkip
in classMultiLevelSkipListWriter
- Parameters:
output
- the IndexOutput the skip lists shall be written to- Returns:
- the pointer the skip list starts
- Throws:
IOException
-
bufferSkip
void bufferSkip(int doc, long docFilePointer, int numDocs, CompetitiveImpactAccumulator competitiveImpactAccumulator) throws IOException - Throws:
IOException
-
writeLevelLength
Description copied from class:MultiLevelSkipListWriter
Writes the length of a level to the given output.- Overrides:
writeLevelLength
in classMultiLevelSkipListWriter
- Parameters:
levelLength
- the length of a leveloutput
- the IndexOutput the length shall be written to- Throws:
IOException
-
writeChildPointer
Description copied from class:MultiLevelSkipListWriter
Writes the child pointer of a block to the given output.- Overrides:
writeChildPointer
in classMultiLevelSkipListWriter
- Parameters:
childPointer
- block of higher level point to the lower levelskipBuffer
- the skip buffer to write to- Throws:
IOException
-