Class Lucene90DocValuesConsumer

    • Constructor Detail

      • Lucene90DocValuesConsumer

        public Lucene90DocValuesConsumer​(SegmentWriteState state,
                                         java.lang.String dataCodec,
                                         java.lang.String dataExtension,
                                         java.lang.String metaCodec,
                                         java.lang.String metaExtension)
                                  throws java.io.IOException
        expert: Creates a new writer
        Throws:
        java.io.IOException
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • addNumericField

        public void addNumericField​(FieldInfo field,
                                    DocValuesProducer valuesProducer)
                             throws java.io.IOException
        Description copied from class: DocValuesConsumer
        Writes numeric docvalues for a field.
        Specified by:
        addNumericField in class DocValuesConsumer
        Parameters:
        field - field information
        valuesProducer - Numeric values to write.
        Throws:
        java.io.IOException - if an I/O error occurred.
      • writeValues

        private long[] writeValues​(FieldInfo field,
                                   DocValuesProducer valuesProducer,
                                   boolean ords)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • writeValuesSingleBlock

        private void writeValuesSingleBlock​(SortedNumericDocValues values,
                                            long numValues,
                                            int numBitsPerValue,
                                            long min,
                                            long gcd,
                                            LongIntHashMap encode)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • writeValuesMultipleBlocks

        private long writeValuesMultipleBlocks​(SortedNumericDocValues values,
                                               long gcd)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • writeBlock

        private void writeBlock​(long[] values,
                                int length,
                                long gcd,
                                ByteBuffersDataOutput buffer)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • addBinaryField

        public void addBinaryField​(FieldInfo field,
                                   DocValuesProducer valuesProducer)
                            throws java.io.IOException
        Description copied from class: DocValuesConsumer
        Writes binary docvalues for a field.
        Specified by:
        addBinaryField in class DocValuesConsumer
        Parameters:
        field - field information
        valuesProducer - Binary values to write.
        Throws:
        java.io.IOException - if an I/O error occurred.
      • addSortedField

        public void addSortedField​(FieldInfo field,
                                   DocValuesProducer valuesProducer)
                            throws java.io.IOException
        Description copied from class: DocValuesConsumer
        Writes pre-sorted binary docvalues for a field.
        Specified by:
        addSortedField in class DocValuesConsumer
        Parameters:
        field - field information
        valuesProducer - produces the values and ordinals to write
        Throws:
        java.io.IOException - if an I/O error occurred.
      • doAddSortedField

        private void doAddSortedField​(FieldInfo field,
                                      DocValuesProducer valuesProducer)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • addTermsDict

        private void addTermsDict​(SortedSetDocValues values)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • writeTermsIndex

        private void writeTermsIndex​(SortedSetDocValues values)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • addSortedNumericField

        public void addSortedNumericField​(FieldInfo field,
                                          DocValuesProducer valuesProducer)
                                   throws java.io.IOException
        Description copied from class: DocValuesConsumer
        Writes pre-sorted numeric docvalues for a field
        Specified by:
        addSortedNumericField in class DocValuesConsumer
        Parameters:
        field - field information
        valuesProducer - produces the values to write
        Throws:
        java.io.IOException - if an I/O error occurred.
      • doAddSortedNumericField

        private void doAddSortedNumericField​(FieldInfo field,
                                             DocValuesProducer valuesProducer,
                                             boolean ords)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • isSingleValued

        private static boolean isSingleValued​(SortedSetDocValues values)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • addSortedSetField

        public void addSortedSetField​(FieldInfo field,
                                      DocValuesProducer valuesProducer)
                               throws java.io.IOException
        Description copied from class: DocValuesConsumer
        Writes pre-sorted set docvalues for a field
        Specified by:
        addSortedSetField in class DocValuesConsumer
        Parameters:
        field - field information
        valuesProducer - produces the values to write
        Throws:
        java.io.IOException - if an I/O error occurred.