Class SimpleTextDocValuesWriter

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    class SimpleTextDocValuesWriter
    extends DocValuesConsumer
    • Constructor Detail

      • SimpleTextDocValuesWriter

        public SimpleTextDocValuesWriter​(SegmentWriteState state,
                                         java.lang.String ext)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • fieldSeen

        private boolean fieldSeen​(java.lang.String field)
      • 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.
      • 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.
      • doAddBinaryField

        private void doAddBinaryField​(FieldInfo field,
                                      DocValuesProducer valuesProducer)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • 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.
      • 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.
      • 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.
      • writeFieldEntry

        private void writeFieldEntry​(FieldInfo field,
                                     DocValuesType type)
                              throws java.io.IOException
        write the header for this field
        Throws:
        java.io.IOException
      • close

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