Companion

object Companion

Properties

Link copied to clipboard
const val BYTES: Int

stores integer values so number of bytes is 4

Functions

Link copied to clipboard
fun decodeMax(b: ByteArray, dimension: Int): Int

decodes the max value (for the defined dimension) from the encoded input byte array

Link copied to clipboard
fun decodeMin(b: ByteArray, dimension: Int): Int

decodes the min value (for the defined dimension) from the encoded input byte array

Link copied to clipboard

Encodes the min, max ranges into a byte array

Link copied to clipboard
fun newContainsQuery(field: String, min: IntArray, max: IntArray): Query

Create a query for matching indexed ranges that contain the defined range.

Link copied to clipboard
fun newCrossesQuery(field: String, min: IntArray, max: IntArray): Query

Create a query for matching indexed ranges that cross the defined range. A CROSSES is defined as any set of ranges that are not disjoint and not wholly contained by the query. Effectively, its the complement of union(WITHIN, DISJOINT).

Link copied to clipboard

Create a query for matching indexed ranges that intersect the defined range.

Link copied to clipboard
fun newWithinQuery(field: String, min: IntArray, max: IntArray): Query

Create a query for matching indexed ranges that are within the defined range.

Link copied to clipboard
fun verifyAndEncode(min: IntArray, max: IntArray, bytes: ByteArray)

encode the ranges into a sortable byte array (Double.NaN not allowed)