Class SimpleTextSkipWriter

    • Constructor Detail

      • SimpleTextSkipWriter

        SimpleTextSkipWriter​(SegmentWriteState writeState)
                      throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • writeSkipData

        protected void writeSkipData​(int level,
                                     DataOutput skipBuffer)
                              throws java.io.IOException
        Description copied from class: MultiLevelSkipListWriter
        Subclasses must implement the actual skip data encoding in this method.
        Specified by:
        writeSkipData in class MultiLevelSkipListWriter
        Parameters:
        level - the level skip data shall be writing for
        skipBuffer - the skip buffer to write to
        Throws:
        java.io.IOException
      • writeSkip

        public long writeSkip​(IndexOutput output)
                       throws java.io.IOException
        Description copied from class: MultiLevelSkipListWriter
        Writes the buffered skip lists to the given output.
        Overrides:
        writeSkip in class MultiLevelSkipListWriter
        Parameters:
        output - the IndexOutput the skip lists shall be written to
        Returns:
        the pointer the skip list starts
        Throws:
        java.io.IOException
      • bufferSkip

        void bufferSkip​(int doc,
                        long docFilePointer,
                        int numDocs,
                        CompetitiveImpactAccumulator competitiveImpactAccumulator)
                 throws java.io.IOException
        Throws:
        java.io.IOException
      • writeLevelLength

        protected void writeLevelLength​(long levelLength,
                                        IndexOutput output)
                                 throws java.io.IOException
        Description copied from class: MultiLevelSkipListWriter
        Writes the length of a level to the given output.
        Overrides:
        writeLevelLength in class MultiLevelSkipListWriter
        Parameters:
        levelLength - the length of a level
        output - the IndexOutput the length shall be written to
        Throws:
        java.io.IOException
      • writeChildPointer

        protected void writeChildPointer​(long childPointer,
                                         DataOutput skipBuffer)
                                  throws java.io.IOException
        Description copied from class: MultiLevelSkipListWriter
        Writes the child pointer of a block to the given output.
        Overrides:
        writeChildPointer in class MultiLevelSkipListWriter
        Parameters:
        childPointer - block of higher level point to the lower level
        skipBuffer - the skip buffer to write to
        Throws:
        java.io.IOException