Class DocValuesConsumer

    • Method Detail

      • addNumericField

        public abstract void addNumericField​(FieldInfo field,
                                             java.lang.Iterable<java.lang.Number> values)
                                      throws java.io.IOException
        Writes numeric docvalues for a field.
        Parameters:
        field - field information
        values - Iterable of numeric values (one for each document). null indicates a missing value.
        Throws:
        java.io.IOException - if an I/O error occurred.
      • addBinaryField

        public abstract void addBinaryField​(FieldInfo field,
                                            java.lang.Iterable<BytesRef> values)
                                     throws java.io.IOException
        Writes binary docvalues for a field.
        Parameters:
        field - field information
        values - Iterable of binary values (one for each document). null indicates a missing value.
        Throws:
        java.io.IOException - if an I/O error occurred.
      • addSortedField

        public abstract void addSortedField​(FieldInfo field,
                                            java.lang.Iterable<BytesRef> values,
                                            java.lang.Iterable<java.lang.Number> docToOrd)
                                     throws java.io.IOException
        Writes pre-sorted binary docvalues for a field.
        Parameters:
        field - field information
        values - Iterable of binary values in sorted order (deduplicated).
        docToOrd - Iterable of ordinals (one for each document). -1 indicates a missing value.
        Throws:
        java.io.IOException - if an I/O error occurred.
      • addSortedSetField

        public abstract void addSortedSetField​(FieldInfo field,
                                               java.lang.Iterable<BytesRef> values,
                                               java.lang.Iterable<java.lang.Number> docToOrdCount,
                                               java.lang.Iterable<java.lang.Number> ords)
                                        throws java.io.IOException
        Writes pre-sorted set docvalues for a field
        Parameters:
        field - field information
        values - Iterable of binary values in sorted order (deduplicated).
        docToOrdCount - Iterable of the number of values for each document. A zero ordinal count indicates a missing value.
        ords - Iterable of ordinal occurrences (docToOrdCount*maxDoc total).
        Throws:
        java.io.IOException - if an I/O error occurred.