public class SPARQLConstraint<X extends XSDBooleanIV> extends Constraint<X>
EBVBOp
, which itself computes the
effective boolean value of an IValueExpression
.BOp.Annotations
DEFAULT_INITIAL_CAPACITY
EMPTY
Constructor and Description |
---|
SPARQLConstraint(BOp[] args,
Map<String,Object> anns)
Required shallow copy constructor.
|
SPARQLConstraint(IValueExpression<? extends IV> x)
Construct a SPARQL constraint using the specified value expression.
|
SPARQLConstraint(SPARQLConstraint<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<? extends XSDBooleanIV> |
get(int i)
Return an argument to the operation.
|
String |
toShortString()
Overridden to provide a little bit of information about the attached
constraint.
|
getValueExpression, wrap
__replaceArg, _clearProperty, _set, _setProperty, annotations, annotationsCopy, annotationsEqual, annotationsRef, argIterator, args, argsCopy, arity, clearAnnotations, clearProperty, deepCopy, deepCopy, getProperty, setArg, setProperty, setUnboundProperty, toArray, toArray
annotationsEqual, annotationsToString, annotationsToString, annotationValueToString, checkArgs, clone, equals, getEvaluationContext, getId, getProperty, getRequiredProperty, hashCode, indent, isController, mutation, shortenName, toString, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
annotations, argIterator, args, arity, clone, getEvaluationContext, getId, getProperty, getRequiredProperty, isController, setProperty, toArray, toArray, toString, toString
getProperty
public SPARQLConstraint(IValueExpression<? extends IV> x)
EBVBOp
if it does not itself evaluate to a boolean.public SPARQLConstraint(BOp[] args, Map<String,Object> anns)
public SPARQLConstraint(SPARQLConstraint<X> op)
com.bigdata.bop.BOpUtility#deepCopy(FilterNode)
.public IValueExpression<? extends XSDBooleanIV> get(int i)
BOp
get
in interface BOp
get
in class BOpBase
i
- The argument index in [0:BOp.arity()
-1].public boolean accept(IBindingSet bs)
IConstraint
true
if the binding set satisfies the constraint.accept
in interface IConstraint
accept
in class Constraint<X extends XSDBooleanIV>
bs
- The binding set.public String toShortString()
toShortString
in interface BOp
toShortString
in class CoreBaseBOp
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.