class ByTimeFilterOperation(val attrId: Int, val filterBuilder: FilterBuilder)
// Find entities where timeVar equals a specific timestamp
Query.where { has(TestComponent.id) }
.filter { by(TestComponent.timeVarData).isEqualTo(1000L) }
// Find entities where timeVar is between two timestamps
Query.where { has(TestComponent.id) }
.filter { by(TestComponent.timeVarData).greaterThanOrEqualTo(startTime) and
by(TestComponent.timeVarData).lessThanOrEqualTo(endTime) }
// Find entities where timeVar is after a specific timestamp
Query.where { has(TestComponent.id)}
.filter { by(TestComponent.timeVarData).greaterThan(timestamp) }
| Name | Summary |
|---|---|
ByTimeFilterOperation | constructor(attrId: Int, filterBuilder: FilterBuilder) |
| Name | Summary |
|---|---|
attrId | val attrId: Int |
filterBuilder | val filterBuilder: FilterBuilder |
| Name | Summary |
|---|---|
greaterThan | fun greaterThan(value: Long): ByTimeAttributeFilterNode Creates a filter node representing a greater than condition with the given timestamp value. |
greaterThanOrEqualTo | fun greaterThanOrEqualTo(value: Long): ByTimeAttributeFilterNode Creates a filter node representing a greater than or equal to condition with the given timestamp value. |
isEqualTo | fun isEqualTo(value: Long): ByTimeAttributeFilterNode Creates a filter node representing an equality condition with the given timestamp value. |
lessThan | fun lessThan(value: Long): ByTimeAttributeFilterNode Creates a filter node representing a less than condition with the given timestamp value. |
lessThanOrEqualTo | fun lessThanOrEqualTo(value: Long): ByTimeAttributeFilterNode Creates a filter node representing a less than or equal to condition with the given timestamp value. |