Class Qualifier
java.lang.Object
org.springframework.data.aerospike.query.qualifier.Qualifier
- All Implemented Interfaces:
Serializable,Map<QualifierKey,,Object> CriteriaDefinition
public class Qualifier
extends Object
implements CriteriaDefinition, Map<QualifierKey,Object>, Serializable
Generic Bin qualifier. It acts as a filter to exclude records that do not meet the given criteria.
For the list of the supported operations see FilterOperation
- Author:
- Peter Milne
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.aerospike.repository.query.CriteriaDefinition
CriteriaDefinition.AerospikeMetadata, CriteriaDefinition.AerospikeNullQueryCriterion, CriteriaDefinition.AerospikeQueryCriterion -
Method Summary
Modifier and TypeMethodDescriptionstatic QualifierCreate a parent qualifier that contains the given qualifiers combined using logical ANDstatic QualifierBuilderbuilder()voidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()Get the identifying field.GetFilterrepresentation.com.aerospike.client.cdt.CTX[]Set CTX[].com.aerospike.client.exp.ExpgetId()com.aerospike.client.ValuegetKey()getPath()com.aerospike.client.query.Filtercom.aerospike.client.Valuecom.aerospike.client.ValuegetValue()booleanhasId()booleanbooleanhasPath()booleanbooleanbooleanhasValue()static QualifieridEquals(byte[] id) Create a qualifier for the condition when the primary key equals the given byte arraystatic QualifierCreate a qualifier for the condition when the primary key equals the given bytestatic QualifierCreate a qualifier for the condition when the primary key equals the given characterstatic QualifierCreate a qualifier for the condition when the primary key equals the given integerstatic QualifierCreate a qualifier for the condition when the primary key equals the given longstatic QualifierCreate a qualifier for the condition when the primary key equals the given shortstatic QualifierCreate a qualifier for the condition when the primary key equals the given stringstatic QualifieridIn(byte[]... ids) Create a qualifier for the condition when the primary key equals one of the given byte arrays (logical OR)static QualifierCreate a qualifier for the condition when the primary key equals one of the given bytes (logical OR)static QualifierCreate a qualifier for the condition when the primary key equals one of the given characters (logical OR)static QualifierCreate a qualifier for the condition when the primary key equals one of the given integers (logical OR)static QualifierCreate a qualifier for the condition when the primary key equals one of the given longs (logical OR)static QualifierCreate a qualifier for the condition when the primary key equals one of the given shorts (logical OR)static QualifierCreate a qualifier for the condition when the primary key equals one of the given strings (logical OR)booleanisEmpty()keySet()static MetadataQualifierBuilderstatic QualifierCreate a parent qualifier that contains the given qualifiers combined using logical ORput(QualifierKey key, Object value) voidputAll(Map<? extends QualifierKey, ?> m) voidsetDataSettings(AerospikeDataSettings dataSettings) voidsetHasSecIndexFilter(Boolean queryAsFilter) intsize()toString()values()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Method Details
-
getCriteriaObject
Description copied from interface:CriteriaDefinitionGetFilterrepresentation.- Specified by:
getCriteriaObjectin interfaceCriteriaDefinition
-
getCriteriaField
Description copied from interface:CriteriaDefinitionGet the identifying field.- Specified by:
getCriteriaFieldin interfaceCriteriaDefinition
-
builder
-
metadataBuilder
-
getOperation
-
getBinName
-
hasPath
public boolean hasPath() -
getPath
-
hasMetadataField
public boolean hasMetadataField() -
getMetadataField
-
setHasSecIndexFilter
-
hasSecIndexFilter
-
setDataSettings
-
hasQualifiers
public boolean hasQualifiers() -
hasId
public boolean hasId() -
hasSingleId
public boolean hasSingleId() -
getId
-
getCtxArray
public com.aerospike.client.cdt.CTX[] getCtxArray()Set CTX[]. -
getQualifiers
-
getKey
public com.aerospike.client.Value getKey() -
hasValue
public boolean hasValue() -
getValue
public com.aerospike.client.Value getValue() -
getSecondValue
public com.aerospike.client.Value getSecondValue() -
getDotPath
-
getSecondaryIndexFilter
public com.aerospike.client.query.Filter getSecondaryIndexFilter() -
getFilterExp
public com.aerospike.client.exp.Exp getFilterExp() -
size
public int size()- Specified by:
sizein interfaceMap<QualifierKey,Object>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceMap<QualifierKey,Object>
-
containsKey
- Specified by:
containsKeyin interfaceMap<QualifierKey,Object>
-
containsValue
- Specified by:
containsValuein interfaceMap<QualifierKey,Object>
-
get
- Specified by:
getin interfaceMap<QualifierKey,Object>
-
put
- Specified by:
putin interfaceMap<QualifierKey,Object>
-
remove
- Specified by:
removein interfaceMap<QualifierKey,Object>
-
putAll
- Specified by:
putAllin interfaceMap<QualifierKey,Object>
-
clear
public void clear()- Specified by:
clearin interfaceMap<QualifierKey,Object>
-
keySet
- Specified by:
keySetin interfaceMap<QualifierKey,Object>
-
values
- Specified by:
valuesin interfaceMap<QualifierKey,Object>
-
entrySet
- Specified by:
entrySetin interfaceMap<QualifierKey,Object>
-
toString
-
idEquals
Create a qualifier for the condition when the primary key equals the given string- Parameters:
id- String value- Returns:
- Single id qualifier
-
idEquals
Create a qualifier for the condition when the primary key equals the given short- Parameters:
id- Short value- Returns:
- Single id qualifier
-
idEquals
Create a qualifier for the condition when the primary key equals the given integer- Parameters:
id- Integer value- Returns:
- Single id qualifier
-
idEquals
Create a qualifier for the condition when the primary key equals the given long- Parameters:
id- Long value- Returns:
- Single id qualifier
-
idEquals
Create a qualifier for the condition when the primary key equals the given character- Parameters:
id- Character value- Returns:
- Single id qualifier
-
idEquals
Create a qualifier for the condition when the primary key equals the given byte- Parameters:
id- Byte value- Returns:
- Single id qualifier
-
idEquals
Create a qualifier for the condition when the primary key equals the given byte array- Parameters:
id- Byte array value- Returns:
- Single id qualifier
-
idIn
Create a qualifier for the condition when the primary key equals one of the given strings (logical OR)- Parameters:
ids- String values- Returns:
- Multiple ids qualifier with OR condition
-
idIn
Create a qualifier for the condition when the primary key equals one of the given shorts (logical OR)- Parameters:
ids- Short values- Returns:
- Multiple ids qualifier with OR condition
-
idIn
Create a qualifier for the condition when the primary key equals one of the given integers (logical OR)- Parameters:
ids- Integer values- Returns:
- Multiple ids qualifier with OR condition
-
idIn
Create a qualifier for the condition when the primary key equals one of the given longs (logical OR)- Parameters:
ids- Long values- Returns:
- Multiple ids qualifier with OR condition
-
idIn
Create a qualifier for the condition when the primary key equals one of the given characters (logical OR)- Parameters:
ids- Character values- Returns:
- Multiple ids qualifier with OR condition
-
idIn
Create a qualifier for the condition when the primary key equals one of the given bytes (logical OR)- Parameters:
ids- Byte values- Returns:
- Multiple ids qualifier with OR condition
-
idIn
Create a qualifier for the condition when the primary key equals one of the given byte arrays (logical OR)- Parameters:
ids- Byte array values- Returns:
- Multiple ids qualifier with OR condition
-
or
Create a parent qualifier that contains the given qualifiers combined using logical OR- Parameters:
qualifiers- Two or more qualifiers- Returns:
- Parent qualifier
-
and
Create a parent qualifier that contains the given qualifiers combined using logical AND- Parameters:
qualifiers- Two or more qualifiers- Returns:
- Parent qualifier
-