Companion

object Companion

Functions

Link copied to clipboard
fun decodeDimension(value: ByteArray, offset: Int): Double

Decode single double dimension

Link copied to clipboard
fun encodeDimension(value: Double, dest: ByteArray, offset: Int)

Encode single double dimension

Link copied to clipboard
fun newExactQuery(field: String, value: Double): Query

Create a query for matching an exact double value.

Link copied to clipboard
fun newRangeQuery(field: String, lowerValue: Double, upperValue: Double): Query

Create a range query for double values.

fun newRangeQuery(field: String, lowerValue: DoubleArray, upperValue: DoubleArray): Query

Create a range query for n-dimensional double values.

Link copied to clipboard
fun newSetQuery(field: String, vararg values: Double): Query

Create a query matching any of the specified 1D values. This is the points equivalent of TermsQuery.

Link copied to clipboard

Return the greatest double that compares less than d consistently with Double.compare. The only difference with Math.nextDown is that this method returns -0d when the argument is +0d.

Link copied to clipboard

Return the least double that compares greater than d consistently with Double.compare. The only difference with Math.nextUp is that this method returns +0d when the argument is -0d.

Link copied to clipboard
fun pack(vararg point: Double): BytesRef

Pack a double point into a BytesRef