public static final class SingleColumnRestriction.IsNotNullRestriction extends SingleColumnRestriction
SingleColumnRestriction.ContainsRestriction, SingleColumnRestriction.EQRestriction, SingleColumnRestriction.INRestriction, SingleColumnRestriction.InRestrictionWithMarker, SingleColumnRestriction.InRestrictionWithValues, SingleColumnRestriction.IsNotNullRestriction, SingleColumnRestriction.LikeRestriction, SingleColumnRestriction.SliceRestriction
columnDef
Constructor and Description |
---|
IsNotNullRestriction(ColumnMetadata columnDef) |
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,
IndexRegistry indexRegistry,
QueryOptions options)
Adds to the specified row filter the expressions corresponding to this
Restriction . |
MultiCBuilder |
appendTo(MultiCBuilder builder,
QueryOptions options)
Appends the values of this
SingleRestriction to the specified builder. |
SingleRestriction |
doMergeWith(SingleRestriction otherRestriction) |
boolean |
isNotNull() |
protected boolean |
isSupportedBy(Index index)
Check if this type of restriction is supported by the specified index.
|
java.lang.String |
toString() |
getColumnDefs, getFirstColumn, getLastColumn, hasSupportingIndex, mergeWith
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
appendBoundTo, hasBound, isContains, isEQ, isIN, isInclusive, isLIKE, isMultiColumn, isSlice
isOnToken
public IsNotNullRestriction(ColumnMetadata columnDef)
public void addFunctionsTo(java.util.List<Function> functions)
Restriction
functions
- the list to add topublic boolean isNotNull()
public void addRowFilterTo(RowFilter filter, IndexRegistry indexRegistry, QueryOptions options)
Restriction
Restriction
.filter
- the row filter to add expressions toindexRegistry
- the index registryoptions
- the query optionspublic MultiCBuilder appendTo(MultiCBuilder builder, QueryOptions options)
SingleRestriction
SingleRestriction
to the specified builder.builder
- the MultiCBuilder
to append to.options
- the query optionsMultiCBuilder
public java.lang.String toString()
toString
in class java.lang.Object
public SingleRestriction doMergeWith(SingleRestriction otherRestriction)
doMergeWith
in class SingleColumnRestriction
protected boolean isSupportedBy(Index index)
SingleColumnRestriction
isSupportedBy
in class SingleColumnRestriction
index
- the secondary indextrue
this type of restriction is supported by the specified index,
false
otherwise.Copyright © 2009-2021 The Apache Software Foundation