public final class Filter extends Object
| Modifier and Type | Method and Description |
|---|---|
static Filter |
contains(Expression exp,
IndexCollectionType type,
byte[] value)
Create contains byte[] filter for query on collection index with expression.
|
static Filter |
contains(Expression exp,
IndexCollectionType type,
long value)
Create contains number filter for query on collection index with Expression.
|
static Filter |
contains(Expression exp,
IndexCollectionType type,
String value)
Create contains string filter for query on collection index with Expression.
|
static Filter |
contains(String name,
IndexCollectionType type,
byte[] value,
CTX... ctx)
Create contains byte[] filter for query on collection index.
|
static Filter |
contains(String name,
IndexCollectionType type,
long value,
CTX... ctx)
Create contains number filter for query on collection index.
|
static Filter |
contains(String name,
IndexCollectionType type,
String value,
CTX... ctx)
Create contains string filter for query on collection index.
|
static Filter |
containsByIndex(String indexName,
IndexCollectionType type,
byte[] value)
Create contains byte[] filter for query on collection index with index name.
|
static Filter |
containsByIndex(String indexName,
IndexCollectionType type,
long value)
Create contains number filter for query on collection index with index name.
|
static Filter |
containsByIndex(String indexName,
IndexCollectionType type,
String value)
Create contains string filter for query on collection index with index name.
|
static Filter |
equal(Expression exp,
byte[] value)
Create blob equality filter for query with Expression.
|
static Filter |
equal(Expression exp,
long value)
Create long equality filter for query with Expression.
|
static Filter |
equal(Expression exp,
String value)
Create string equality filter for query with Expression.
|
static Filter |
equal(String name,
byte[] value,
CTX... ctx)
Create blob equality filter for query.
|
static Filter |
equal(String name,
long value,
CTX... ctx)
Create long equality filter for query.
|
static Filter |
equal(String name,
String value,
CTX... ctx)
Create string equality filter for query.
|
static Filter |
equalByIndex(String indexName,
byte[] value)
Create blob equality filter for query with index name.
|
static Filter |
equalByIndex(String indexName,
long value)
Create long equality filter for query with index name.
|
static Filter |
equalByIndex(String indexName,
String value)
Create string equality filter for query with index name.
|
boolean |
equals(Object obj)
Check for Filter equality.
|
int |
estimateSize()
Estimate filter's byte send when sending command to server.
|
static Filter |
geoContains(Expression exp,
IndexCollectionType type,
String point)
Create geospatial "containing point" filter for query on collection index with expression.
|
static Filter |
geoContains(Expression exp,
String point)
Create geospatial "containing point" filter for query with expression.
|
static Filter |
geoContains(String name,
IndexCollectionType type,
String point,
CTX... ctx)
Create geospatial "containing point" filter for query on collection index.
|
static Filter |
geoContains(String name,
String point,
CTX... ctx)
Create geospatial "containing point" filter for query.
|
static Filter |
geoContainsByIndex(String indexName,
IndexCollectionType type,
String point)
Create geospatial "containing point" filter for query on collection index with index name.
|
static Filter |
geoContainsByIndex(String indexName,
String point)
Create geospatial "containing point" filter for query with index name.
|
static Filter |
geoWithinRadius(Expression exp,
double lng,
double lat,
double radius)
Create geospatial "within radius" filter for query with expression.
|
static Filter |
geoWithinRadius(Expression exp,
IndexCollectionType type,
double lng,
double lat,
double radius)
Create geospatial "within radius" filter for query on collection index with expression.
|
static Filter |
geoWithinRadius(String name,
double lng,
double lat,
double radius,
CTX... ctx)
Create geospatial "within radius" filter for query.
|
static Filter |
geoWithinRadius(String name,
IndexCollectionType type,
double lng,
double lat,
double radius,
CTX... ctx)
Create geospatial "within radius" filter for query on collection index.
|
static Filter |
geoWithinRadiusByIndex(String indexName,
double lng,
double lat,
double radius)
Create geospatial "within radius" filter for query with index name.
|
static Filter |
geoWithinRadiusByIndex(String indexName,
IndexCollectionType type,
double lng,
double lat,
double radius)
Create geospatial "within radius" filter for query on collection index with index name.
|
static Filter |
geoWithinRegion(Expression exp,
IndexCollectionType type,
String region)
Create geospatial "within region" filter for query on collection index with expression.
|
static Filter |
geoWithinRegion(Expression exp,
String region)
Create geospatial "within region" filter for query with expression.
|
static Filter |
geoWithinRegion(String name,
IndexCollectionType type,
String region,
CTX... ctx)
Create geospatial "within region" filter for query on collection index.
|
static Filter |
geoWithinRegion(String name,
String region,
CTX... ctx)
Create geospatial "within region" filter for query.
|
static Filter |
geoWithinRegionByIndex(String indexName,
IndexCollectionType type,
String region)
Create geospatial "within region" filter for query on collection index with index name.
|
static Filter |
geoWithinRegionByIndex(String indexName,
String region)
Create geospatial "within region" filter for query with index name.
|
Value |
getBegin()
Filter begin value.
|
IndexCollectionType |
getCollectionType()
Retrieve index collection type.
|
IndexCollectionType |
getColType()
Index collection type.
|
Value |
getEnd()
Filter begin value.
|
String |
getIndexName()
Index name.
|
String |
getName()
Filter name.
|
byte[] |
getPackedCtx()
Retrieve packed Context.
|
byte[] |
getPackedExp()
Retrieve packed Expression.
|
int |
getValType()
Filter Value type.
|
int |
hashCode()
Generate Filter hashCode.
|
static Filter |
range(Expression exp,
IndexCollectionType type,
long begin,
long end)
Create range filter for query on collection index with expression.
|
static Filter |
range(Expression exp,
long begin,
long end)
Create a range filter for an Expression-based Secondary Index (SI) query, with the actual Expression that was
used to create the SI.
|
static Filter |
range(String name,
IndexCollectionType type,
long begin,
long end,
CTX... ctx)
Create range filter for query on collection index.
|
static Filter |
range(String name,
long begin,
long end,
CTX... ctx)
Create range filter for query.
|
static Filter |
rangeByIndex(String indexName,
IndexCollectionType type,
long begin,
long end)
Create range filter for query on collection index with index name.
|
static Filter |
rangeByIndex(String indexName,
long begin,
long end)
Create a range filter for an Expression-based Secondary Index (SI) query, using the SI name
Range arguments must be longs or integers which can be cast to longs.
|
int |
write(byte[] buf,
int offset)
Write filter to send command buffer.
|
public static Filter equal(String name, long value, CTX... ctx)
name - bin namevalue - filter valuectx - optional context for elements within a CDTpublic static Filter equal(Expression exp, long value)
exp - the Expressionvalue - filter valuepublic static Filter equalByIndex(String indexName, long value)
indexName - the name that was assigned to the Secondary Index (SI)value - filter valuepublic static Filter equal(String name, String value, CTX... ctx)
name - bin namevalue - filter valuectx - optional context for elements within a CDTpublic static Filter equal(Expression exp, String value)
exp - the Expressionvalue - filter valuepublic static Filter equalByIndex(String indexName, String value)
indexName - the name that was assigned to the Secondary Index (SI)value - filter valuepublic static Filter equal(String name, byte[] value, CTX... ctx)
name - bin namevalue - filter valuectx - optional context for elements within a CDTpublic static Filter equal(Expression exp, byte[] value)
exp - the Expressionvalue - filter valuepublic static Filter equalByIndex(String indexName, byte[] value)
indexName - the name that was assigned to the Secondary Index (SI)value - filter valuepublic static Filter contains(String name, IndexCollectionType type, long value, CTX... ctx)
name - bin nametype - index collection typevalue - filter valuectx - optional context for elements within a CDTpublic static Filter contains(Expression exp, IndexCollectionType type, long value)
exp - expression to use for the filtertype - index collection typevalue - filter valuectx - optional context for elements within a CDTpublic static Filter containsByIndex(String indexName, IndexCollectionType type, long value)
indexName - index nametype - index collection typevalue - filter valuectx - optional context for elements within a CDTpublic static Filter contains(String name, IndexCollectionType type, String value, CTX... ctx)
name - bin nametype - index collection typevalue - filter valuectx - optional context for elements within a CDTpublic static Filter contains(Expression exp, IndexCollectionType type, String value)
exp - expression to use for the filtertype - index collection typevalue - filter valuectx - optional context for elements within a CDTpublic static Filter containsByIndex(String indexName, IndexCollectionType type, String value)
indexName - index nametype - index collection typevalue - filter valuectx - optional context for elements within a CDTpublic static Filter contains(String name, IndexCollectionType type, byte[] value, CTX... ctx)
name - bin nametype - index collection typevalue - filter valuectx - optional context for elements within a CDTpublic static Filter contains(Expression exp, IndexCollectionType type, byte[] value)
exp - expression to use for the filtertype - index collection typevalue - filter valuectx - optional context for elements within a CDTpublic static Filter containsByIndex(String indexName, IndexCollectionType type, byte[] value)
indexName - index nametype - index collection typevalue - filter valuectx - optional context for elements within a CDTpublic static Filter range(String name, long begin, long end, CTX... ctx)
name - bin namebegin - filter begin value inclusiveend - filter end value inclusivectx - optional context for elements within a CDTpublic static Filter range(Expression exp, long begin, long end)
exp - the Expressionbegin - filter begin value inclusiveend - filter end value inclusivepublic static Filter rangeByIndex(String indexName, long begin, long end)
indexName - the name that was assigned to the SIbegin - filter begin value inclusiveend - filter end value inclusivepublic static Filter range(String name, IndexCollectionType type, long begin, long end, CTX... ctx)
name - bin nametype - index collection typebegin - filter begin value inclusiveend - filter end value inclusivectx - optional context for elements within a CDTpublic static Filter range(Expression exp, IndexCollectionType type, long begin, long end)
expression - the Expression to use for the filtertype - index collection typebegin - filter begin value inclusiveend - filter end value inclusivectx - optional context for elements within a CDTpublic static Filter rangeByIndex(String indexName, IndexCollectionType type, long begin, long end)
indexName - index nametype - index collection typebegin - filter begin value inclusiveend - filter end value inclusivectx - optional context for elements within a CDTpublic static Filter geoWithinRegion(String name, String region, CTX... ctx)
name - bin nameregion - GeoJSON regionctx - optional context for elements within a CDTpublic static Filter geoWithinRegion(Expression exp, String region)
exp - the Expression to use for the filterregion - GeoJSON regionctx - optional context for elements within a CDTpublic static Filter geoWithinRegionByIndex(String indexName, String region)
indexName - index nameregion - GeoJSON regionctx - optional context for elements within a CDTpublic static Filter geoWithinRegion(String name, IndexCollectionType type, String region, CTX... ctx)
name - bin nametype - index collection typeregion - GeoJSON regionctx - optional context for elements within a CDTpublic static Filter geoWithinRegion(Expression exp, IndexCollectionType type, String region)
exp - the Expression to use for the filtertype - index collection typeregion - GeoJSON regionctx - optional context for elements within a CDTpublic static Filter geoWithinRegionByIndex(String indexName, IndexCollectionType type, String region)
indexName - index nametype - index collection typeregion - GeoJSON regionctx - optional context for elements within a CDTpublic static Filter geoWithinRadius(String name, double lng, double lat, double radius, CTX... ctx)
name - bin namelng - longitudelat - latituderadius - radius (meters)ctx - optional context for elements within a CDTpublic static Filter geoWithinRadius(Expression exp, double lng, double lat, double radius)
exp - the Expression to use for the filterlng - longitudelat - latituderadius - radius (meters)ctx - optional context for elements within a CDTpublic static Filter geoWithinRadiusByIndex(String indexName, double lng, double lat, double radius)
indexName - index namelng - longitudelat - latituderadius - radius (meters)ctx - optional context for elements within a CDTpublic static Filter geoWithinRadius(String name, IndexCollectionType type, double lng, double lat, double radius, CTX... ctx)
name - bin nametype - index collection typelng - longitudelat - latituderadius - radius (meters)ctx - optional context for elements within a CDTpublic static Filter geoWithinRadius(Expression exp, IndexCollectionType type, double lng, double lat, double radius)
exp - the Expression to use for the filtertype - index collection typelng - longitudelat - latituderadius - radius (meters)ctx - optional context for elements within a CDTpublic static Filter geoWithinRadiusByIndex(String indexName, IndexCollectionType type, double lng, double lat, double radius)
indexName - index nametype - index collection typelng - longitudelat - latituderadius - radius (meters)ctx - optional context for elements within a CDTpublic static Filter geoContains(String name, String point, CTX... ctx)
name - bin namepoint - GeoJSON pointctx - optional context for elements within a CDTpublic static Filter geoContains(Expression exp, String point)
exp - the Expression to use for the filterpoint - GeoJSON pointctx - optional context for elements within a CDTpublic static Filter geoContainsByIndex(String indexName, String point)
indexName - index namepoint - GeoJSON pointctx - optional context for elements within a CDTpublic static Filter geoContains(String name, IndexCollectionType type, String point, CTX... ctx)
name - bin nametype - index collection typepoint - GeoJSON pointctx - optional context for elements within a CDTpublic static Filter geoContains(Expression exp, IndexCollectionType type, String point)
exp - the Expression to use for the filtertype - index collection typepoint - GeoJSON pointctx - optional context for elements within a CDTpublic static Filter geoContainsByIndex(String indexName, IndexCollectionType type, String point)
indexName - index nametype - index collection typepoint - GeoJSON pointctx - optional context for elements within a CDTpublic int estimateSize()
public int write(byte[] buf,
int offset)
public IndexCollectionType getCollectionType()
public String getName()
public String getIndexName()
public IndexCollectionType getColType()
public Value getBegin()
public Value getEnd()
public int getValType()
public byte[] getPackedCtx()
public byte[] getPackedExp()
public boolean equals(Object obj)
Copyright © 2012–2025 Aerospike, Inc. All rights reserved.