LeafMetaData

class LeafMetaData(val createdVersionMajor: Int, val minVersion: Version?, val sort: Sort?, val hasBlocks: Boolean)

Provides read-only metadata about a leaf.

Parameters

createdVersionMajor

the Lucene version that created this index. This can be used to implement backward compatibility on top of the codec API. A return value of 6 indicates that the created version is unknown.

minVersion

the minimum Lucene version that contributed documents to this index, or null if this information is not available.

sort

the order in which documents from this index are sorted, or null if documents are in no particular order.

hasBlocks

Returns true iff this index contains blocks created with or it's corresponding update methods with at least 2 or more documents per call. Note: This property was not recorded before LUCENE_9_9_0 this method will return false for all leaves written before LUCENE_9_9_0

See also

Constructors

Link copied to clipboard
constructor(createdVersionMajor: Int, minVersion: Version?, sort: Sort?, hasBlocks: Boolean)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val sort: Sort?