Exp Class

Expression generator.

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
public abstract class Exp
Inheritance
Object    Exp

Methods

Abs Create operator that returns absolute value of a number. All arguments must resolve to integer or float. Requires server version 5.6.0+.
Add Create "add" (+) operator that applies to a variable number of expressions. Return sum of all arguments. All arguments must resolve to the same type (integer or float). Requires server version 5.6.0+.
And Create "and" operator that applies to a variable number of expressions.
ARshift Create integer "arithmetic right shift" (>>) operator. Requires server version 5.6.0+.
Bin Create bin expression of specified type.
BinExists Create expression that returns if bin of specified name exists.
BinType Create expression that returns bin's integer particle type. See ParticleType.
BlobBin Create byte[] bin expression.
BoolBin Create boolean bin expression.
Build Create final expression that contains packed byte instructions used in the wire protocol.
Ceil Create expression that rounds a floating point number up to the closest integer value. The return type is float. Requires server version 5.6.0+.
Cond Conditionally select an expression from a variable number of expression pairs followed by default expression action. Requires server version 5.6.0+.
Count Create expression that returns count of integer bits that are set to 1. Requires server version 5.6.0+.
Def Assign variable to a Let(Exp) expression that can be accessed later. Requires server version 5.6.0+.
DeviceSize Create expression that returns record size on disk. If server storage-engine is memory, then zero is returned. This expression usually evaluates quickly because record meta data is cached in memory.
DigestModulo Create expression that returns record digest modulo as integer. This expression usually evaluates quickly because record meta data is cached in memory.
Div Create "divide" (/) operator that applies to a variable number of expressions. If there is only one argument, returns the reciprocal for that argument. Otherwise, return the first argument divided by the product of the rest. All arguments must resolve to the same type (integer or float). Requires server version 5.6.0+.
EQ Create "equals" expression.
Exclusive Create expression that returns true if only one of the expressions are true. Requires server version 5.6.0+.
Expr Merge precompiled expression into a new expression tree. Useful for storing common precompiled expressions and then reusing these expressions as part of a greater expression.
FloatBin Create 64 bit float bin expression.
Floor Create expression that rounds a floating point number down to the closest integer value. The return type is float. Requires server version 5.6.0+.
GE Create "greater than or equal" operation.
Geo Create geospatial json string value.
GeoBin Create geospatial bin expression.
GeoCompare Create compare geospatial operation.
GT Create "greater than" operation.
HLLBin Create hll bin expression.
IntAnd Create integer "and" (&) operator that is applied to two or more integers. All arguments must resolve to integers. Requires server version 5.6.0+.
IntBin Create 64 bit integer bin expression.
IntNot Create integer "not" (~) operator. Requires server version 5.6.0+.
IntOr Create integer "or" (|) operator that is applied to two or more integers. All arguments must resolve to integers. Requires server version 5.6.0+.
IntXor Create integer "xor" (^) operator that is applied to two or more integers. All arguments must resolve to integers. Requires server version 5.6.0+.
IsTombstone Create expression that returns if record has been deleted and is still in tombstone state. This expression usually evaluates quickly because record meta data is cached in memory.
Key Create record key expression of specified type.
KeyExists Create expression that returns if the primary key is stored in the record meta data as a boolean expression. This would occur when sendKey is true on record write. This expression usually evaluates quickly because record meta data is cached in memory.
LastUpdate Create expression that returns record last update time expressed as 64 bit integer nanoseconds since 1970-01-01 epoch. This expression usually evaluates quickly because record meta data is cached in memory.
LE Create "less than or equal" operation.
Let Define variables and expressions in scope. Requires server version 5.6.0+.
ListBin Create list bin expression.
Log Create "log" operator for logarithm of "num" with base "base". All arguments must resolve to floats. Requires server version 5.6.0+.
Lscan Create expression that scans integer bits from left (most significant bit) to right (least significant bit), looking for a search bit value. When the search value is found, the index of that bit (where the most significant bit is index 0) is returned. If "search" is true, the scan will search for the bit value 1. If "search" is false it will search for bit value 0. Requires server version 5.6.0+.
Lshift Create integer "left shift" (<<) operator. Requires server version 5.6.0+.
LT Create "less than" operation.
MapBin Create map bin expression.
Max Create expression that returns the maximum value in a variable number of expressions. All arguments must be the same type (integer or float). Requires server version 5.6.0+.
MemorySize Create expression that returns record size in memory. If server storage-engine is not memory nor data-in-memory, then zero is returned. This expression usually evaluates quickly because record meta data is cached in memory.

Requires server version between 5.3 inclusive and 7.0 exclusive. Use RecordSize for server version 7.0+.

Min Create expression that returns the minimum value in a variable number of expressions. All arguments must be the same type (integer or float). Requires server version 5.6.0+.
Mod Create "modulo" (%) operator that determines the remainder of "numerator" divided by "denominator". All arguments must resolve to integers. Requires server version 5.6.0+.
Mul Create "multiply" (*) operator that applies to a variable number of expressions. Return the product of all arguments. If only one argument is supplied, return that argument. All arguments must resolve to the same type (integer or float). Requires server version 5.6.0+.
NE Create "not equal" expression
Nil Create nil value.
Not Create "not" operator expression.
Or Create "or" operator that applies to a variable number of expressions.
Pack 
Pow Create "power" operator that raises a "base" to the "exponent" power. All arguments must resolve to floats. Requires server version 5.6.0+.
RecordSize Create expression that returns the record size. This expression usually evaluates quickly because record meta data is cached in memory.
RegexCompare Create expression that performs a regex match on a string bin or string value expression.
Rscan Create expression that scans integer bits from right (least significant bit) to left (most significant bit), looking for a search bit value. When the search value is found, the index of that bit (where the most significant bit is index 0) is returned. If "search" is true, the scan will search for the bit value 1. If "search" is false it will search for bit value 0. Requires server version 5.6.0+.
Rshift Create integer "logical right shift" (>>>) operator. Requires server version 5.6.0+.
SetName Create expression that returns record set name string. This expression usually evaluates quickly because record meta data is cached in memory.
SinceUpdate Create expression that returns milliseconds since the record was last updated. This expression usually evaluates quickly because record meta data is cached in memory.
StringBin Create string bin expression.
Sub Create "subtract" (-) operator that applies to a variable number of expressions. If only one argument is provided, return the negation of that argument. Otherwise, return the sum of the 2nd to Nth argument subtracted from the 1st argument. All arguments must resolve to the same type (integer or float). Requires server version 5.6.0+.
ToFloat Create expression that converts an integer to a float. Requires server version 5.6.0+.
ToInt Create expression that converts a float to an integer. Requires server version 5.6.0+.
TTL Create expression that returns record expiration time (time to live) in integer seconds. This expression usually evaluates quickly because record meta data is cached in memory.
Unknown Create unknown value. Used to intentionally fail an expression. The failure can be ignored with EVAL_NO_FAIL or EVAL_NO_FAIL Requires server version 5.6.0+.
Val(Boolean) Create boolean value.
Val(Byte) Create blob byte[] value.
Val(DateTime) Create Calendar value expressed in nanoseconds since 1970-01-01 epoch as 64 bit integer.
Val(Double) Create 64 bit floating point value.
Val(IList) Create list value.
Val(Int64) Create 64 bit integer value.
Val(String) Create string value.
Val(UInt64) Create 64 bit unsigned integer value.
Val(IDictionary, MapOrder) Create map value.
Var Retrieve expression value from a variable. Requires server version 5.6.0+.
VoidTime Create expression that returns record expiration time expressed as 64 bit integer nanoseconds since 1970-01-01 epoch. This expression usually evaluates quickly because record meta data is cached in memory.

Fields

See Also