BKDReader

class BKDReader(metaIn: IndexInput, indexIn: IndexInput, dataIn: IndexInput) : PointValues

Handles reading a block KD-tree in byte[] space previously written with BKDWriter.

Constructors

Link copied to clipboard
constructor(metaIn: IndexInput, indexIn: IndexInput, dataIn: IndexInput)

Properties

Link copied to clipboard
open override val bytesPerDimension: Int
Link copied to clipboard
Link copied to clipboard
open override val docCount: Int

Returns the total number of documents that have indexed at least one point.

Link copied to clipboard
Link copied to clipboard
open override val maxPackedValue: ByteArray
Link copied to clipboard
Link copied to clipboard
open override val minPackedValue: ByteArray
Link copied to clipboard
open override val numDimensions: Int
Link copied to clipboard
open override val numIndexDimensions: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val pointTree: PointValues.PointTree
Link copied to clipboard

Functions

Link copied to clipboard

Estimate the number of documents that would be matched by .intersect with the given IntersectVisitor. This should run many times faster than .intersect.

Link copied to clipboard

Estimate the number of points that would be visited by .intersect with the given [ ]. This should run many times faster than .intersect.

Link copied to clipboard

Finds all documents and points matching the provided visitor. This method does not enforce live documents, so it's up to the caller to test whether each document is deleted, if necessary.

Link copied to clipboard
open override fun size(): Long

Returns the total number of indexed points across all documents.