public class NotImpl extends ConstraintImpl
Constructor and Description |
---|
NotImpl(ConstraintImpl constraint) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsUnfilteredFullTextCondition()
Whether the condition contains a fulltext condition that can not be
applied to the filter, for example because it is part of an "or" condition
of the form "where a=1 or contains(., 'x')".
|
protected PropertyValue |
convertValueToType(PropertyValue v,
PropertyValue targetType) |
org.apache.jackrabbit.oak.query.ast.AstElement |
copyOf() |
boolean |
evaluate()
Evaluate the result using the currently set values.
|
ConstraintImpl |
getConstraint() |
protected java.lang.String |
getLocalPath(java.lang.String path)
Calculate the session local path (the path excluding the workspace name)
if possible.
|
java.util.Set<PropertyExistenceImpl> |
getPropertyExistenceConditions()
Get the set of property existence conditions that can be derived for this
condition.
|
java.util.Set<SelectorImpl> |
getSelectors()
Get the set of selectors for the given condition.
|
protected java.lang.String |
normalizePath(java.lang.String path)
Validate and normalize the path.
|
protected java.lang.String |
normalizePropertyName(java.lang.String propertyName)
Normalize the property name (including namespace remapping).
|
protected java.lang.String |
protect(java.lang.Object expression) |
protected java.lang.String |
quote(java.lang.String pathOrName) |
protected java.lang.String |
quoteJson(java.lang.String string) |
boolean |
requiresFullTextIndex()
Whether the constraint contains a fulltext condition that requires
using a fulltext index, because the condition can only be evaluated there.
|
void |
restrict(FilterImpl f)
Apply the condition to the filter, further restricting the filter if
possible.
|
void |
restrictPushDown(SelectorImpl s)
Push as much of the condition down to this selector, further restricting
the selector condition if possible.
|
void |
setQuery(QueryImpl query) |
ConstraintImpl |
simplify()
Apply DeMorgan's Laws to push AND/OR constraints higher.
|
java.lang.String |
toString() |
convertToUnion, equals, evaluateStop, getFullTextConstraint, hashCode
protected QueryImpl query
public NotImpl(ConstraintImpl constraint)
public ConstraintImpl getConstraint()
public ConstraintImpl simplify()
simplify
in class ConstraintImpl
public boolean evaluate()
ConstraintImpl
evaluate
in class ConstraintImpl
public java.util.Set<PropertyExistenceImpl> getPropertyExistenceConditions()
ConstraintImpl
getPropertyExistenceConditions
in class ConstraintImpl
public java.util.Set<SelectorImpl> getSelectors()
ConstraintImpl
getSelectors
in class ConstraintImpl
public java.lang.String toString()
toString
in class java.lang.Object
public void restrict(FilterImpl f)
ConstraintImpl
restrict
in class ConstraintImpl
f
- the filterpublic void restrictPushDown(SelectorImpl s)
ConstraintImpl
restrictPushDown
in class ConstraintImpl
s
- the selectorpublic org.apache.jackrabbit.oak.query.ast.AstElement copyOf()
AstElement
returns same reference
to this
.public boolean requiresFullTextIndex()
ConstraintImpl
requiresFullTextIndex
in class ConstraintImpl
public boolean containsUnfilteredFullTextCondition()
ConstraintImpl
containsUnfilteredFullTextCondition
in class ConstraintImpl
protected java.lang.String protect(java.lang.Object expression)
protected java.lang.String quote(java.lang.String pathOrName)
protected java.lang.String quoteJson(java.lang.String string)
public void setQuery(QueryImpl query)
protected java.lang.String normalizePropertyName(java.lang.String propertyName)
propertyName
- the property name to normalizeprotected java.lang.String normalizePath(java.lang.String path)
path
- the path to validateprotected PropertyValue convertValueToType(PropertyValue v, PropertyValue targetType)
protected java.lang.String getLocalPath(java.lang.String path)
path
- the absolute pathCopyright © 2012–2022 The Apache Software Foundation. All rights reserved.