Class SegmentsStats

    • Constructor Detail

      • SegmentsStats

        public SegmentsStats()
    • Method Detail

      • add

        public void add​(long count,
                        long memoryInBytes)
      • addTermsMemoryInBytes

        public void addTermsMemoryInBytes​(long termsMemoryInBytes)
      • addStoredFieldsMemoryInBytes

        public void addStoredFieldsMemoryInBytes​(long storedFieldsMemoryInBytes)
      • addTermVectorsMemoryInBytes

        public void addTermVectorsMemoryInBytes​(long termVectorsMemoryInBytes)
      • addNormsMemoryInBytes

        public void addNormsMemoryInBytes​(long normsMemoryInBytes)
      • addPointsMemoryInBytes

        public void addPointsMemoryInBytes​(long pointsMemoryInBytes)
      • addDocValuesMemoryInBytes

        public void addDocValuesMemoryInBytes​(long docValuesMemoryInBytes)
      • addIndexWriterMemoryInBytes

        public void addIndexWriterMemoryInBytes​(long indexWriterMemoryInBytes)
      • addVersionMapMemoryInBytes

        public void addVersionMapMemoryInBytes​(long versionMapMemoryInBytes)
      • addBitsetMemoryInBytes

        public void addBitsetMemoryInBytes​(long bitsetMemoryInBytes)
      • addFileSizes

        public void addFileSizes​(ImmutableOpenMap<java.lang.String,​java.lang.Long> fileSizes)
      • getCount

        public long getCount()
        The number of segments.
      • getMemoryInBytes

        public long getMemoryInBytes()
        Estimation of the memory usage used by a segment.
      • getTermsMemoryInBytes

        public long getTermsMemoryInBytes()
        Estimation of the terms dictionary memory usage by a segment.
      • getStoredFieldsMemoryInBytes

        public long getStoredFieldsMemoryInBytes()
        Estimation of the stored fields memory usage by a segment.
      • getStoredFieldsMemory

        public ByteSizeValue getStoredFieldsMemory()
      • getTermVectorsMemoryInBytes

        public long getTermVectorsMemoryInBytes()
        Estimation of the term vectors memory usage by a segment.
      • getTermVectorsMemory

        public ByteSizeValue getTermVectorsMemory()
      • getNormsMemoryInBytes

        public long getNormsMemoryInBytes()
        Estimation of the norms memory usage by a segment.
      • getPointsMemoryInBytes

        public long getPointsMemoryInBytes()
        Estimation of the points memory usage by a segment.
      • getDocValuesMemoryInBytes

        public long getDocValuesMemoryInBytes()
        Estimation of the doc values memory usage by a segment.
      • getIndexWriterMemoryInBytes

        public long getIndexWriterMemoryInBytes()
        Estimation of the memory usage by index writer
      • getIndexWriterMemory

        public ByteSizeValue getIndexWriterMemory()
      • getVersionMapMemoryInBytes

        public long getVersionMapMemoryInBytes()
        Estimation of the memory usage by version map
      • getVersionMapMemory

        public ByteSizeValue getVersionMapMemory()
      • getBitsetMemoryInBytes

        public long getBitsetMemoryInBytes()
        Estimation of how much the cached bit sets are taking. (which nested and p/c rely on)
      • getFileSizes

        public ImmutableOpenMap<java.lang.String,​java.lang.Long> getFileSizes()
      • getMaxUnsafeAutoIdTimestamp

        public long getMaxUnsafeAutoIdTimestamp()
        Returns the max timestamp that is used to de-optimize documents with auto-generated IDs in the engine. This is used to ensure we don't add duplicate documents when we assume an append only case based on auto-generated IDs