API reference
API reference
Select your platform
No SDKs available
No versions available

ByLongFilterOperation

ByLongFilterOperation

class ByLongFilterOperation(val attrId: Int, val filterBuilder: FilterBuilder)
A class representing a filter operation for long integer attributes. It is used to build a filter expression by specifying comparison operations on long integer attributes.
This class provides methods for creating filter nodes that represent various comparison operations on long integer attributes, such as equality, greater than, less than, etc. These filter nodes can then be combined using logical operators (AND, OR) to create complex filtering conditions.
Example:
// Find entities where longVar equals 1000L
Query.where { has(TestComponent.id) }
     .filter { by(TestComponent.longVarData).isEqualTo(1000L) }

// Find entities where longVar is between 500L and 1500L
Query.where { has(TestComponent.id) }
     .filter {
       by(TestComponent.longVarData).greaterThanOrEqualTo(500L) and
       by(TestComponent.longVarData).lessThanOrEqualTo(1500L)
     }

// Find entities where longVar is not equal to 0L
Query.where { has(TestComponent.id) }
     .filter { not(by(TestComponent.longVarData).isEqualTo(0L)) }

Constructors

NameSummary
ByLongFilterOperation
constructor(attrId: Int, filterBuilder: FilterBuilder)

Properties

NameSummary
attrId
val attrId: Int
filterBuilder
val filterBuilder: FilterBuilder

Functions

NameSummary
greaterThan
fun greaterThan(value: Long): ByLongFilterNode

Creates a filter node representing a greater than condition with the given value.
greaterThanOrEqualTo
fun greaterThanOrEqualTo(value: Long): ByLongFilterNode

Creates a filter node representing a greater than or equal to condition with the given value.
isEqualTo
fun isEqualTo(value: Long): ByLongFilterNode

Creates a filter node representing an equality condition with the given value.
lessThan
fun lessThan(value: Long): ByLongFilterNode

Creates a filter node representing a less than condition with the given value.
lessThanOrEqualTo
fun lessThanOrEqualTo(value: Long): ByLongFilterNode

Creates a filter node representing a less than or equal to condition with the given value.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon