Class IndexRestrictions
- java.lang.Object
-
- org.apache.cassandra.cql3.restrictions.IndexRestrictions
-
public class IndexRestrictions extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CUSTOM_EXPRESSION_NOT_SUPPORTED
static java.lang.String
INDEX_NOT_FOUND
static java.lang.String
INVALID_INDEX
static java.lang.String
MULTIPLE_EXPRESSIONS
static java.lang.String
NON_CUSTOM_INDEX_IN_EXPRESSION
-
Constructor Summary
Constructors Constructor Description IndexRestrictions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(CustomIndexExpression expression)
void
add(Restrictions restrictions)
java.util.List<CustomIndexExpression>
getCustomIndexExpressions()
java.util.List<Restrictions>
getRestrictions()
boolean
isEmpty()
boolean
needsFiltering(IndexRegistry indexRegistry)
Returns whether these restrictions would need filtering if the specified index registry were used.java.lang.String
toString()
-
-
-
Field Detail
-
INDEX_NOT_FOUND
public static final java.lang.String INDEX_NOT_FOUND
- See Also:
- Constant Field Values
-
INVALID_INDEX
public static final java.lang.String INVALID_INDEX
- See Also:
- Constant Field Values
-
CUSTOM_EXPRESSION_NOT_SUPPORTED
public static final java.lang.String CUSTOM_EXPRESSION_NOT_SUPPORTED
- See Also:
- Constant Field Values
-
NON_CUSTOM_INDEX_IN_EXPRESSION
public static final java.lang.String NON_CUSTOM_INDEX_IN_EXPRESSION
- See Also:
- Constant Field Values
-
MULTIPLE_EXPRESSIONS
public static final java.lang.String MULTIPLE_EXPRESSIONS
- See Also:
- Constant Field Values
-
-
Method Detail
-
add
public void add(Restrictions restrictions)
-
add
public void add(CustomIndexExpression expression)
-
isEmpty
public boolean isEmpty()
-
getRestrictions
public java.util.List<Restrictions> getRestrictions()
-
getCustomIndexExpressions
public java.util.List<CustomIndexExpression> getCustomIndexExpressions()
-
needsFiltering
public boolean needsFiltering(IndexRegistry indexRegistry)
Returns whether these restrictions would need filtering if the specified index registry were used.- Parameters:
indexRegistry
- an index registry- Returns:
true
if this would need filtering ifindexRegistry
were used,false
otherwise
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-