Companion

object Companion

Properties

Link copied to clipboard
const val BYTES: Int

stores float values so number of bytes is 4

Functions

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

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

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

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

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

Link copied to clipboard

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

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

Link copied to clipboard

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