Class SegmentDocValuesProducer

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

    class SegmentDocValuesProducer
    extends DocValuesProducer
    Encapsulates multiple producers when there are docvalues updates as one producer
    • Field Detail

      • LONG_RAM_BYTES_USED

        private static final long LONG_RAM_BYTES_USED
      • BASE_RAM_BYTES_USED

        private static final long BASE_RAM_BYTES_USED
      • dvProducersByField

        final java.util.Map<java.lang.String,​DocValuesProducer> dvProducersByField
      • dvGens

        final java.util.List<java.lang.Long> dvGens
    • Constructor Detail

      • SegmentDocValuesProducer

        SegmentDocValuesProducer​(SegmentCommitInfo si,
                                 Directory dir,
                                 FieldInfos coreInfos,
                                 FieldInfos allInfos,
                                 SegmentDocValues segDocValues)
                          throws java.io.IOException
        Creates a new producer that handles updated docvalues fields
        Parameters:
        si - commit point
        dir - directory
        coreInfos - fieldinfos for the segment
        allInfos - all fieldinfos including updated ones
        segDocValues - producer map
        Throws:
        java.io.IOException
    • Method Detail

      • checkIntegrity

        public void checkIntegrity()
                            throws java.io.IOException
        Description copied from class: DocValuesProducer
        Checks consistency of this producer

        Note that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.

        Specified by:
        checkIntegrity in class DocValuesProducer
        Throws:
        java.io.IOException
      • close

        public void close()
                   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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object