public final class TermSlice
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
addFunctionsTo(java.util.List<Function> functions) |
Term |
bound(Bound bound)
Returns the boundary value.
|
Operator |
getIndexOperator(Bound b)
Returns the index operator corresponding to the specified boundary.
|
boolean |
hasBound(Bound b)
Checks if this slice has a boundary for the specified type.
|
boolean |
isInclusive(Bound b)
Checks if this slice boundary is inclusive for the specified type.
|
boolean |
isSupportedBy(ColumnDefinition column,
Index index)
Check if this
TermSlice is supported by the specified index. |
TermSlice |
merge(TermSlice otherSlice)
Merges this slice with the specified one.
|
static TermSlice |
newInstance(Bound bound,
boolean include,
Term term)
Creates a new
TermSlice with the specified boundary. |
java.lang.String |
toString() |
public static TermSlice newInstance(Bound bound, boolean include, Term term)
TermSlice with the specified boundary.bound - the boundary typeinclude - true if the boundary is inclusiveterm - the valueTermSlice instancepublic Term bound(Bound bound)
bound - the boundary typepublic boolean hasBound(Bound b)
b - the boundary typetrue if this slice has a boundary for the specified type, false otherwise.public boolean isInclusive(Bound b)
b - the boundary typetrue if this slice boundary is inclusive for the specified type,
false otherwise.public TermSlice merge(TermSlice otherSlice)
otherSlice - the slice to merge topublic java.lang.String toString()
toString in class java.lang.Objectpublic Operator getIndexOperator(Bound b)
b - the boundary typepublic boolean isSupportedBy(ColumnDefinition column, Index index)
TermSlice is supported by the specified index.index - the secondary indextrue this type of TermSlice is supported by the specified index,
false otherwise.public void addFunctionsTo(java.util.List<Function> functions)
Copyright © 2018 The Apache Software Foundation