ConstantLongValuesSource

A ConstantLongValuesSource that always returns a constant value

Constructors

Link copied to clipboard
constructor(value: Long)

Properties

Link copied to clipboard
val value: Long

Get the constant value.

Functions

Link copied to clipboard
open operator override fun equals(o: Any?): Boolean
Link copied to clipboard

Create a sort field based on the value of this producer

Link copied to clipboard
open override fun getValues(ctx: LeafReaderContext, scores: DoubleValues?): LongValues

Returns a LongValues instance for the passed-in LeafReaderContext and scores

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun isCacheable(ctx: LeafReaderContext): Boolean
Link copied to clipboard
open override fun needsScores(): Boolean

Return true if document scores are needed to calculate values

Link copied to clipboard
open override fun rewrite(searcher: IndexSearcher): LongValuesSource

Return a LongValuesSource specialised for the given IndexSearcher

Link copied to clipboard

Convert to a DoubleValuesSource by casting long values to doubles

Link copied to clipboard
open override fun toString(): String