public final class Filter extends Object
Modifier and Type | Method and Description |
---|---|
static Filter |
contains(String name,
IndexCollectionType type,
long value)
Create contains number filter for query on collection index.
|
static Filter |
contains(String name,
IndexCollectionType type,
String value)
Create contains string filter for query on collection index.
|
static Filter |
equal(String name,
long value)
Create long equality filter for query.
|
static Filter |
equal(String name,
String value)
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)
Create geospatial "containing point" filter for query on collection index.
|
static Filter |
geoContains(String name,
String point)
Create geospatial "containing point" filter for query.
|
static Filter |
geoWithinRadius(String name,
double lng,
double lat,
double radius)
Create geospatial "within radius" filter for query.
|
static Filter |
geoWithinRadius(String name,
IndexCollectionType type,
double lng,
double lat,
double radius)
Create geospatial "within radius" filter for query on collection index.
|
static Filter |
geoWithinRegion(String name,
IndexCollectionType type,
String region)
Create geospatial "within region" filter for query on collection index.
|
static Filter |
geoWithinRegion(String name,
String region)
Create geospatial "within region" filter for query.
|
IndexCollectionType |
getCollectionType()
Retrieve index collection type.
|
int |
hashCode()
Generate Filter hashCode.
|
static Filter |
range(String name,
IndexCollectionType type,
long begin,
long end)
Create range filter for query on collection index.
|
static Filter |
range(String name,
long begin,
long end)
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)
name
- bin namevalue
- filter valuepublic static Filter equal(String name, String value)
name
- bin namevalue
- filter valuepublic static Filter contains(String name, IndexCollectionType type, long value)
name
- bin nametype
- index collection typevalue
- filter valuepublic static Filter contains(String name, IndexCollectionType type, String value)
name
- bin nametype
- index collection typevalue
- filter valuepublic static Filter range(String name, long begin, long end)
name
- bin namebegin
- filter begin value inclusiveend
- filter end value inclusivepublic static Filter range(String name, IndexCollectionType type, long begin, long end)
name
- bin nametype
- index collection typebegin
- filter begin value inclusiveend
- filter end value inclusivepublic static Filter geoWithinRegion(String name, String region)
name
- bin nameregion
- GeoJSON regionpublic static Filter geoWithinRegion(String name, IndexCollectionType type, String region)
name
- bin nametype
- index collection typeregion
- GeoJSON regionpublic static Filter geoWithinRadius(String name, double lng, double lat, double radius)
name
- bin namelng
- longitudelat
- latituderadius
- radius (meters)public static Filter geoWithinRadius(String name, IndexCollectionType type, double lng, double lat, double radius)
name
- bin nametype
- index collection typelng
- longitudelat
- latituderadius
- radius (meters)public static Filter geoContains(String name, String point)
name
- bin namepoint
- GeoJSON pointpublic static Filter geoContains(String name, IndexCollectionType type, String point)
name
- bin nametype
- index collection typepoint
- GeoJSON point.public int estimateSize() throws AerospikeException
AerospikeException
public int write(byte[] buf, int offset) throws AerospikeException
AerospikeException
public IndexCollectionType getCollectionType()
public boolean equals(Object obj)
Copyright ? 2012–2018 Aerospike, Inc. All rights reserved.