Class DefaultIndexingChain

  • All Implemented Interfaces:
    Accountable

    final class DefaultIndexingChain
    extends DocConsumer
    Default general purpose indexing chain, which handles indexing all types of fields.
    • Method Detail

      • onAbortingException

        private void onAbortingException​(java.lang.Throwable th)
      • getDocValuesLeafReader

        private LeafReader getDocValuesLeafReader()
      • writePoints

        private void writePoints​(SegmentWriteState state,
                                 Sorter.DocMap sortMap)
                          throws java.io.IOException
        Writes all buffered points.
        Throws:
        java.io.IOException
      • abort

        public void abort()
                   throws java.io.IOException
        Specified by:
        abort in class DocConsumer
        Throws:
        java.io.IOException
      • rehash

        private void rehash()
      • startStoredFields

        private void startStoredFields​(int docID)
                                throws java.io.IOException
        Calls StoredFieldsWriter.startDocument, aborting the segment if it hits any exception.
        Throws:
        java.io.IOException
      • finishStoredFields

        private void finishStoredFields()
                                 throws java.io.IOException
        Calls StoredFieldsWriter.finishDocument, aborting the segment if it hits any exception.
        Throws:
        java.io.IOException
      • processDocument

        public void processDocument​(int docID,
                                    java.lang.Iterable<? extends IndexableField> document)
                             throws java.io.IOException
        Specified by:
        processDocument in class DocConsumer
        Throws:
        java.io.IOException
      • processField

        private int processField​(int docID,
                                 IndexableField field,
                                 long fieldGen,
                                 int fieldCount)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • verifyUnIndexedFieldType

        private static void verifyUnIndexedFieldType​(java.lang.String name,
                                                     IndexableFieldType ft)
      • validateIndexSortDVType

        private void validateIndexSortDVType​(Sort indexSort,
                                             java.lang.String fieldToValidate,
                                             DocValuesType dvType)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • ramBytesUsed

        public long ramBytesUsed()
        Description copied from interface: Accountable
        Return the memory usage of this object in bytes. Negative values are illegal.
      • getChildResources

        public java.util.Collection<Accountable> getChildResources()
        Description copied from interface: Accountable
        Returns nested resources of this class. The result should be a point-in-time snapshot (to avoid race conditions).
        See Also:
        Accountables