IntervalsSource

abstract class IntervalsSource

A helper class for IntervalQuery that provides an IntervalIterator for a given field and segment

Static constructor functions for various different sources can be found in the [Intervals] class

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
abstract operator override fun equals(other: Any?): Boolean
Link copied to clipboard
abstract override fun hashCode(): Int
Link copied to clipboard
abstract fun intervals(field: String, ctx: LeafReaderContext): IntervalIterator?

Create an IntervalIterator exposing the minimum intervals defined by this IntervalsSource

Link copied to clipboard
abstract fun matches(field: String, ctx: LeafReaderContext, doc: Int): IntervalMatchesIterator?

Return a IntervalMatchesIterator over the intervals defined by this IntervalsSource for a given document and field

Link copied to clipboard
abstract fun minExtent(): Int

Return the minimum possible width of an interval returned by this source

Link copied to clipboard

Expert: return the set of disjunctions that make up this IntervalsSource

Link copied to clipboard
abstract override fun toString(): String
Link copied to clipboard
abstract fun visit(field: String, visitor: QueryVisitor)

Expert: visit the tree of sources