Companion

object Companion

Functions

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

Decode single float dimension

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

Encode single float dimension

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

Create a query for matching an exact float value.

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

Create a range query for float values.

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

Create a range query for n-dimensional float values.

Link copied to clipboard
fun newSetQuery(field: String, vararg values: Float): 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 float that compares less than f consistently with Float.compare. The only difference with Math.nextDown is that this method returns -0f when the argument is +0f.

Link copied to clipboard
fun nextUp(f: Float): Float

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

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

Pack a float point into a BytesRef