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

ByLongFilterOperation Class

Modifiers: final
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)) }

Signature

class ByLongFilterOperation(val attrId: Int, val filterBuilder: FilterBuilder)

Constructors

ByLongFilterOperation ( attrId , filterBuilder )
Signature
constructor(attrId: Int, filterBuilder: FilterBuilder)
Parameters
attrId: Int
  The attribute id of the long attribute for the filter operation.
filterBuilder: FilterBuilder
  The filter builder object used to create the filter node.

Properties

attrId : Int
[Get]
Signature
val attrId: Int
filterBuilder : FilterBuilder
[Get]
Signature
val filterBuilder: FilterBuilder

Functions

greaterThan ( value )
Creates a filter node representing a greater than condition with the given value.
Signature
fun greaterThan(value: Long): ByLongFilterNode
Parameters
value: Long
greaterThanOrEqualTo ( value )
Creates a filter node representing a greater than or equal to condition with the given value.
Signature
fun greaterThanOrEqualTo(value: Long): ByLongFilterNode
Parameters
value: Long
isEqualTo ( value )
Creates a filter node representing an equality condition with the given value.
Signature
fun isEqualTo(value: Long): ByLongFilterNode
Parameters
value: Long
lessThan ( value )
Creates a filter node representing a less than condition with the given value.
Signature
fun lessThan(value: Long): ByLongFilterNode
Parameters
value: Long
lessThanOrEqualTo ( value )
Creates a filter node representing a less than or equal to condition with the given value.
Signature
fun lessThanOrEqualTo(value: Long): ByLongFilterNode
Parameters
value: Long