Companion

object Companion

Properties

Link copied to clipboard
const val BYTES: Int = 16

The number of bytes per dimension: 128 bits

Link copied to clipboard
Link copied to clipboard

The maximum value that an ip address can hold.

Link copied to clipboard

The minimum value that an ip address can hold.

Functions

Link copied to clipboard

Decodes InetAddress value from binary encoding

Link copied to clipboard

Encode InetAddress value into binary encoding

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

Create a query for matching a network address.

Link copied to clipboard
fun newPrefixQuery(field: String, value: InetAddress, prefixLength: Int): Query

Create a prefix query for matching a CIDR network range.

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

Create a range query for network addresses.

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

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

Link copied to clipboard

Return the InetAddress that compares immediately less than address.

Link copied to clipboard

Return the InetAddress that compares immediately greater than address.