Predicate expression filter.
Predicate expression filters are applied on the query results on the server.
Predicate expression filters may occur on any bin in the record.
This is an experimental API and subject to change.
Inheritance Hierarchy
Aerospike.ClientPredExp
Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 3.9.16.1 (3.9.16.1)
Syntax
C#
public abstract class PredExp
The PredExp type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() ![]() | And |
Create "and" expression.
|
![]() | EstimateSize |
Estimate size of predicate expression.
For internal use only.
|
![]() ![]() | EstimateSize(PredExp) |
Estimate size of predicate expressions.
For internal use only.
|
![]() ![]() | GeoJSONBin |
Create geospatial bin predicate.
|
![]() ![]() | GeoJSONContains |
Create geospatial json "contains" predicate.
|
![]() ![]() | GeoJSONValue |
Create geospatial json string value.
|
![]() ![]() | GeoJSONVar |
Create geospatial json string variable used in list/map iterations.
|
![]() ![]() | GeoJSONWithin |
Create geospatial json "within" predicate.
|
![]() ![]() | IntegerBin |
Create 64 bit integer bin predicate.
|
![]() ![]() | IntegerEqual |
Create 64 bit integer "=" operation predicate.
|
![]() ![]() | IntegerGreater |
Create 64 bit integer ">" operation predicate.
|
![]() ![]() | IntegerGreaterEq |
Create 64 bit integer ">=" operation predicate.
|
![]() ![]() | IntegerLess |
Create 64 bit integer "<" operation predicate.
|
![]() ![]() | IntegerLessEq |
Create 64 bit integer "<=" operation predicate.
|
![]() ![]() | IntegerUnequal |
Create 64 bit integer "!=" operation predicate.
|
![]() ![]() | IntegerValue(DateTime) |
Create Calendar value expressed in nanoseconds since 1970-01-01 epoch as 64 bit integer.
|
![]() ![]() | IntegerValue(Int64) |
Create 64 bit integer value.
|
![]() ![]() | IntegerVar |
Create 64 bit integer variable used in list/map iterations.
|
![]() ![]() | ListBin |
Create list bin predicate.
|
![]() ![]() | ListIterateAnd |
Create list predicate where expression matches for all list items.
Example:
// Find records where all list elements v != "goodbye" in list bin x. PredExp.StringVar("v") PredExp.StringValue("goodbye") PredExp.StringUnequal() PredExp.ListBin("x") PredExp.ListIterateAnd("v") |
![]() ![]() | ListIterateOr |
Create list predicate where expression matches for any list item.
Example:
// Find records where any list item v = "hello" in list bin x. PredExp.StringVar("v") PredExp.StringValue("hello") PredExp.StringEqual() PredExp.ListBin("x") PredExp.ListIterateOr("v") |
![]() ![]() | MapBin |
Create map bin predicate.
|
![]() ![]() | MapKeyIterateAnd |
Create map key predicate where expression matches for all map keys.
Example:
// Find records where all map keys k < 5 in map bin m. PredExp.IntegerVar("k") PredExp.IntegerValue(5) PredExp.IntegerLess() PredExp.MapBin("m") PredExp.MapKeyIterateAnd("k") |
![]() ![]() | MapKeyIterateOr |
Create map predicate where expression matches for any map key.
Example:
// Find records where any map key k = 7 in map bin m. PredExp.IntegerVar("k") PredExp.IntegerValue(7) PredExp.IntegerEqual() PredExp.MapBin("m") PredExp.MapKeyIterateOr("k") |
![]() ![]() | MapValIterateAnd |
Create map predicate where expression matches for all map values.
Example:
// Find records where all map values v > 500 in map bin m. PredExp.IntegerVar("v") PredExp.IntegerValue(500) PredExp.IntegerGreater() PredExp.MapBin("m") PredExp.MapKeyIterateAnd("v") |
![]() ![]() | MapValIterateOr |
Create map predicate where expression matches for any map value.
// Find records where any map value v > 100 in map bin m. PredExp.IntegerVar("v") PredExp.IntegerValue(100) PredExp.IntegerGreater() PredExp.MapBin("m") PredExp.MapValIterateOr("v") |
![]() ![]() | Not |
Create "not" expression.
|
![]() ![]() | Or |
Create "or" expression.
|
![]() ![]() | RecDeviceSize |
Create record size on disk predicate.
|
![]() ![]() | RecDigestModulo |
Create a digest modulo record metadata value predicate expression.
The digest modulo expression assumes the value of 4 bytes of the
record's key digest modulo it's argument.
For example, the following sequence of predicate expressions selects records that have digest(key) % 3 == 1): PredExp.RecDigestModulo(3) PredExp.IntegerValue(1) PredExp.IntegerEqual() |
![]() ![]() | RecLastUpdate |
Create record last update time predicate expressed in nanoseconds since 1970-01-01 epoch as 64 bit integer.
Example:
// Record last update time >= 2017-01-15 PredExp.RecLastUpdate() PredExp.IntegerValue(new DateTime(2017, 1, 15)) PredExp.IntegerGreaterEq() |
![]() ![]() | RecVoidTime |
Create record expiration time predicate expressed in nanoseconds since 1970-01-01 epoch as 64 bit integer.
Example:
// Record expires on 2020-01-01 PredExp.RecVoidTime() PredExp.IntegerValue(new DateTime(2020, 1, 1)) PredExp.IntegerGreaterEq() PredExp.RecVoidTime() PredExp.IntegerValue(new DateTime(2020, 1, 2)) PredExp.IntegerLess() PredExp.And(2) |
![]() ![]() | StringBin |
Create string bin predicate.
|
![]() ![]() | StringEqual |
Create string "=" operation predicate.
|
![]() ![]() | StringRegex |
Create regular expression string operation predicate. Example:
PredExp.StringRegex(RegexFlag.EXTENDED | RegexFlag.ICASE) |
![]() ![]() | StringUnequal |
Create string "!=" operation predicate.
|
![]() ![]() | StringValue |
Create string value.
|
![]() ![]() | StringVar |
Create string variable used in list/map iterations.
|
![]() | Write(Byte, Int32) |
Write predicate expression to write protocol.
For internal use only.
|
![]() ![]() | Write(PredExp, Byte, Int32) |
Write predicate expressions to write protocol.
For internal use only.
|
See Also