PredExp MembersAerospike

The PredExp type exposes the following members.
Methods

  NameDescription
Public methodStatic memberAnd
Create "and" expression.
Public methodEstimateSize 
Estimate size of predicate expression. For internal use only.
Public methodStatic memberEstimateSize( PredExp )
Estimate size of predicate expressions. For internal use only.
Public methodStatic memberGeoJSONBin
Create geospatial bin predicate.
Public methodStatic memberGeoJSONContains
Create geospatial json "contains" predicate.
Public methodStatic memberGeoJSONValue
Create geospatial json string value.
Public methodStatic memberGeoJSONVar
Create geospatial json string variable used in list/map iterations.
Public methodStatic memberGeoJSONWithin
Create geospatial json "within" predicate.
Public methodStatic memberIntegerBin
Create 64 bit integer bin predicate.
Public methodStatic memberIntegerEqual
Create 64 bit integer "=" operation predicate.
Public methodStatic memberIntegerGreater
Create 64 bit integer ">" operation predicate.
Public methodStatic memberIntegerGreaterEq
Create 64 bit integer ">=" operation predicate.
Public methodStatic memberIntegerLess
Create 64 bit integer "<" operation predicate.
Public methodStatic memberIntegerLessEq
Create 64 bit integer "<=" operation predicate.
Public methodStatic memberIntegerUnequal
Create 64 bit integer "!=" operation predicate.
Public methodStatic memberIntegerValue(DateTime)
Create Calendar value expressed in nanoseconds since 1970-01-01 epoch as 64 bit integer.
Public methodStatic memberIntegerValue(Int64)
Create 64 bit integer value.
Public methodStatic memberIntegerVar
Create 64 bit integer variable used in list/map iterations.
Public methodStatic memberListBin
Create list bin predicate.
Public methodStatic memberListIterateAnd
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")
            
Public methodStatic memberListIterateOr
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")
            
Public methodStatic memberMapBin
Create map bin predicate.
Public methodStatic memberMapKeyIterateAnd
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")
            
Public methodStatic memberMapKeyIterateOr
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")
            
Public methodStatic memberMapValIterateAnd
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")
            
Public methodStatic memberMapValIterateOr
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")
            
Public methodStatic memberNot
Create "not" expression.
Public methodStatic memberOr
Create "or" expression.
Public methodStatic memberRecDeviceSize
Create record size on disk predicate.
Public methodStatic memberRecDigestModulo
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()
            

Public methodStatic memberRecLastUpdate
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()
            
Public methodStatic memberRecVoidTime
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)
            
Public methodStatic memberStringBin
Create string bin predicate.
Public methodStatic memberStringEqual
Create string "=" operation predicate.
Public methodStatic memberStringRegex
Create regular expression string operation predicate. Example:
            PredExp.StringRegex(RegexFlag.EXTENDED | RegexFlag.ICASE)
            
Public methodStatic memberStringUnequal
Create string "!=" operation predicate.
Public methodStatic memberStringValue
Create string value.
Public methodStatic memberStringVar
Create string variable used in list/map iterations.
Public methodWrite( Byte , Int32)
Write predicate expression to write protocol. For internal use only.
Public methodStatic memberWrite( PredExp ,  Byte , Int32)
Write predicate expressions to write protocol. For internal use only.
Back to Top
See Also