public static final class SingleColumnRestriction.ContainsRestriction extends SingleColumnRestriction
SingleColumnRestriction.ContainsRestriction, SingleColumnRestriction.EQRestriction, SingleColumnRestriction.INRestriction, SingleColumnRestriction.InRestrictionWithMarker, SingleColumnRestriction.InRestrictionWithValues, SingleColumnRestriction.IsNotNullRestriction, SingleColumnRestriction.LikeRestriction, SingleColumnRestriction.SliceRestriction, SingleColumnRestriction.SuperColumnKeyEQRestriction, SingleColumnRestriction.SuperColumnKeyINRestriction, SingleColumnRestriction.SuperColumnKeyINRestrictionWithMarkers, SingleColumnRestriction.SuperColumnKeyINRestrictionWithValues, SingleColumnRestriction.SuperColumnKeySliceRestriction, SingleColumnRestriction.SuperColumnMultiEQRestriction, SingleColumnRestriction.SuperColumnMultiSliceRestrictioncolumnDef| Constructor and Description | 
|---|
| ContainsRestriction(ColumnDefinition columnDef,
                   Term t,
                   boolean isKey) | 
| ContainsRestriction(ColumnDefinition columnDef,
                   Term mapKey,
                   Term mapValue) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addFunctionsTo(java.util.List<Function> functions)Adds all functions (native and user-defined) used by any component of the restriction
 to the specified list. | 
| void | addRowFilterTo(RowFilter filter,
              SecondaryIndexManager indexManager,
              QueryOptions options)Adds to the specified row filter the expressions corresponding to this  Restriction. | 
| MultiCBuilder | appendBoundTo(MultiCBuilder builder,
             Bound bound,
             QueryOptions options)Appends the values of the  SingleRestrictionfor the specified bound to the specified builder. | 
| MultiCBuilder | appendTo(MultiCBuilder builder,
        QueryOptions options)Appends the values of this  SingleRestrictionto the specified builder. | 
| SingleRestriction | doMergeWith(SingleRestriction otherRestriction) | 
| boolean | hasBound(Bound b)Checks if the specified bound is set or not. | 
| boolean | isContains() | 
| boolean | isInclusive(Bound b)Checks if the specified bound is inclusive or not. | 
| protected boolean | isSupportedBy(Index index)Check if this type of restriction is supported by the specified index. | 
| int | numberOfEntries() | 
| int | numberOfKeys() | 
| int | numberOfValues() | 
| java.lang.String | toString() | 
getColumnDefs, getFirstColumn, getLastColumn, hasSupportingIndex, mergeWithclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisEQ, isIN, isLIKE, isMultiColumn, isNotNull, isSliceisOnTokenpublic ContainsRestriction(ColumnDefinition columnDef, Term t, boolean isKey)
public ContainsRestriction(ColumnDefinition columnDef, Term mapKey, Term mapValue)
public MultiCBuilder appendTo(MultiCBuilder builder, QueryOptions options)
SingleRestrictionSingleRestriction to the specified builder.builder - the MultiCBuilder to append to.options - the query optionsMultiCBuilderpublic boolean isContains()
public SingleRestriction doMergeWith(SingleRestriction otherRestriction)
doMergeWith in class SingleColumnRestrictionpublic void addRowFilterTo(RowFilter filter, SecondaryIndexManager indexManager, QueryOptions options)
RestrictionRestriction.filter - the row filter to add expressions toindexManager - the secondary index manageroptions - the query optionsprotected boolean isSupportedBy(Index index)
SingleColumnRestrictionisSupportedBy in class SingleColumnRestrictionindex - the secondary indextrue this type of restriction is supported by the specified index,
 false otherwise.public int numberOfValues()
public int numberOfKeys()
public int numberOfEntries()
public void addFunctionsTo(java.util.List<Function> functions)
Restrictionfunctions - the list to add topublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean hasBound(Bound b)
SingleRestrictionb - the bound typetrue if the specified bound is set, false otherwisepublic MultiCBuilder appendBoundTo(MultiCBuilder builder, Bound bound, QueryOptions options)
SingleRestrictionSingleRestriction for the specified bound to the specified builder.builder - the MultiCBuilder to append to.bound - the boundoptions - the query optionsMultiCBuilderpublic boolean isInclusive(Bound b)
SingleRestrictionb - the bound typetrue if the specified bound is inclusive, false otherwiseCopyright © 2018 The Apache Software Foundation