Companion

object Companion

Functions

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

Decode single long dimension

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

Encode single long dimension

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

Create a query for matching an exact long value.

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

Create a range query for long values.

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

Create a range query for n-dimensional long values.

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

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

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

Pack a long point into a BytesRef

Link copied to clipboard
fun unpack(bytesRef: BytesRef?, start: Int, buf: LongArray?)

Unpack a BytesRef into a long point. This method can be used to unpack values that were packed with .pack.