- java.lang.Object
-
- org.apache.lucene.codecs.lucene90.blocktree.Stats
-
public class Stats extends java.lang.Object
BlockTree statistics for a single field returned byFieldReader.getStats()
.
-
-
Field Summary
Fields Modifier and Type Field Description int[]
blockCountByPrefixLen
Number of blocks at each prefix depth.long[]
compressionAlgorithms
Number of times each compression method has been used.private int
endBlockCount
java.lang.String
field
Field name.int
floorBlockCount
The number of floor blocks (meta-blocks larger than the allowedmaxItemsPerBlock
) in the terms file.int
floorSubBlockCount
The number of sub-blocks within the floor blocks.long
indexNumBytes
Byte size of the index.int
mixedBlockCount
The number of "internal" blocks (that have both terms and sub-blocks).int
nonFloorBlockCount
The number of normal (non-floor) blocks in the terms file.java.lang.String
segment
Segment name.private int
startBlockCount
int
subBlocksOnlyBlockCount
The number of "internal" blocks that do not contain terms (have only sub-blocks).int
termsOnlyBlockCount
The number of "leaf" blocks (blocks that have only terms).int
totalBlockCount
Total number of blocks.long
totalBlockOtherBytes
Total bytes stored by thePostingsReaderBase
, plus the other few vInts stored in the frame.long
totalBlockStatsBytes
Total number of bytes used to store term stats (not including what thePostingsReaderBase
stores.long
totalBlockSuffixBytes
Total number of bytes used to store term suffixes.long
totalTermBytes
Total number of bytes (sum of term lengths) across all terms in the field.long
totalTermCount
Total number of terms in the field.long
totalUncompressedBlockSuffixBytes
Total number of suffix bytes before compression.
-
Constructor Summary
Constructors Constructor Description Stats(java.lang.String segment, java.lang.String field)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
endBlock(SegmentTermsEnumFrame frame)
(package private) void
finish()
(package private) void
startBlock(SegmentTermsEnumFrame frame, boolean isFloor)
(package private) void
term(BytesRef term)
java.lang.String
toString()
-
-
-
Field Detail
-
indexNumBytes
public long indexNumBytes
Byte size of the index.
-
totalTermCount
public long totalTermCount
Total number of terms in the field.
-
totalTermBytes
public long totalTermBytes
Total number of bytes (sum of term lengths) across all terms in the field.
-
nonFloorBlockCount
public int nonFloorBlockCount
The number of normal (non-floor) blocks in the terms file.
-
floorBlockCount
public int floorBlockCount
The number of floor blocks (meta-blocks larger than the allowedmaxItemsPerBlock
) in the terms file.
-
floorSubBlockCount
public int floorSubBlockCount
The number of sub-blocks within the floor blocks.
-
mixedBlockCount
public int mixedBlockCount
The number of "internal" blocks (that have both terms and sub-blocks).
-
termsOnlyBlockCount
public int termsOnlyBlockCount
The number of "leaf" blocks (blocks that have only terms).
-
subBlocksOnlyBlockCount
public int subBlocksOnlyBlockCount
The number of "internal" blocks that do not contain terms (have only sub-blocks).
-
totalBlockCount
public int totalBlockCount
Total number of blocks.
-
blockCountByPrefixLen
public int[] blockCountByPrefixLen
Number of blocks at each prefix depth.
-
startBlockCount
private int startBlockCount
-
endBlockCount
private int endBlockCount
-
totalBlockSuffixBytes
public long totalBlockSuffixBytes
Total number of bytes used to store term suffixes.
-
compressionAlgorithms
public final long[] compressionAlgorithms
Number of times each compression method has been used. 0 = uncompressed 1 = lowercase_ascii 2 = LZ4
-
totalUncompressedBlockSuffixBytes
public long totalUncompressedBlockSuffixBytes
Total number of suffix bytes before compression.
-
totalBlockStatsBytes
public long totalBlockStatsBytes
Total number of bytes used to store term stats (not including what thePostingsReaderBase
stores.
-
totalBlockOtherBytes
public long totalBlockOtherBytes
Total bytes stored by thePostingsReaderBase
, plus the other few vInts stored in the frame.
-
segment
public final java.lang.String segment
Segment name.
-
field
public final java.lang.String field
Field name.
-
-
Method Detail
-
startBlock
void startBlock(SegmentTermsEnumFrame frame, boolean isFloor)
-
endBlock
void endBlock(SegmentTermsEnumFrame frame)
-
term
void term(BytesRef term)
-
finish
void finish()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-