public final class Filter extends Object
| Modifier and Type | Method and Description |
|---|---|
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 |
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.
|
boolean |
equals(Object obj)
Check for Filter equality.
|
int |
estimateSize()
Estimate filter's byte send when sending command to server.
|
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 |
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 |
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.
|
Value |
getBegin()
Filter begin value.
|
IndexCollectionType |
getCollectionType()
Retrieve index collection type.
|
IndexCollectionType |
getColType()
Index collection type.
|
Value |
getEnd()
Filter begin value.
|
String |
getName()
Filter name.
|
byte[] |
getPackedCtx()
Retrieve packed Context.
|
int |
getValType()
Filter Value type.
|
int |
hashCode()
Generate Filter hashCode.
|
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.
|
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(String name, String value, CTX... ctx)
name - bin namevalue - filter valuectx - optional context for elements within a CDTpublic static Filter equal(String name, byte[] value, CTX... ctx)
name - bin namevalue - filter valuectx - optional context for elements within a CDTpublic 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(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(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 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(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 geoWithinRegion(String name, String region, CTX... ctx)
name - bin 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 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(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 geoContains(String name, String point, CTX... ctx)
name - bin 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 int estimateSize()
public int write(byte[] buf,
int offset)
public IndexCollectionType getCollectionType()
public String getName()
public IndexCollectionType getColType()
public Value getBegin()
public Value getEnd()
public int getValType()
public byte[] getPackedCtx()
public boolean equals(Object obj)
Copyright © 2012–2024 Aerospike, Inc. All rights reserved.