public class Constraint<X> extends BOpBase implements IValueExpressionConstraint<X>
Constraint
wraps a BooleanValueExpression
.BOp.Annotations
DEFAULT_INITIAL_CAPACITY
EMPTY
Constructor and Description |
---|
Constraint(BooleanValueExpression x) |
Constraint(BOp[] args,
Map<String,Object> anns)
Required shallow copy constructor.
|
Constraint(Constraint<X> op)
Constructor required for
com.bigdata.bop.BOpUtility#deepCopy(FilterNode) . |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(IBindingSet bs)
Return
true if the binding set satisfies the constraint. |
IValueExpression<X> |
getValueExpression()
Return the
IValueExpression which is evaluated by the
IConstraint . |
static IConstraint |
wrap(BooleanValueExpression ve)
Convenience method to generate a constraint from a value expression.
|
__replaceArg, _clearProperty, _set, _setProperty, annotations, annotationsCopy, annotationsEqual, annotationsRef, argIterator, args, argsCopy, arity, clearAnnotations, clearProperty, deepCopy, deepCopy, get, getProperty, setArg, setProperty, setUnboundProperty, toArray, toArray
annotationsEqual, annotationsToString, annotationsToString, annotationValueToString, checkArgs, clone, equals, getEvaluationContext, getId, getProperty, getRequiredProperty, hashCode, indent, isController, mutation, shortenName, toShortString, toString, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
annotations, argIterator, args, arity, clone, get, getEvaluationContext, getId, getProperty, getRequiredProperty, isController, setProperty, toArray, toArray, toShortString, toString, toString
getProperty
public Constraint(BooleanValueExpression x)
public Constraint(BOp[] args, Map<String,Object> anns)
public Constraint(Constraint<X> op)
com.bigdata.bop.BOpUtility#deepCopy(FilterNode)
.public static IConstraint wrap(BooleanValueExpression ve)
public IValueExpression<X> getValueExpression()
IValueExpressionConstraint
IValueExpression
which is evaluated by the
IConstraint
.getValueExpression
in interface IValueExpressionConstraint<X>
public boolean accept(IBindingSet bs)
IConstraint
true
if the binding set satisfies the constraint.accept
in interface IConstraint
bs
- The binding set.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.