public class ConditionalBind<E extends IV> extends ImmutableBOp implements IValueExpression<E>, IBind<E>, IPassesMaterialization
Note: This is intended for use within a BindingConstraint
. That
Modifier and Type | Class and Description |
---|---|
static interface |
ConditionalBind.Annotations |
Modifier and Type | Field and Description |
---|---|
protected Boolean |
projection |
DEFAULT_INITIAL_CAPACITY
Constructor and Description |
---|
ConditionalBind(BOp[] args,
Map<String,Object> annotations)
Required shallow copy constructor.
|
ConditionalBind(ConditionalBind<E> op)
Constructor required for
com.bigdata.bop.BOpUtility#deepCopy(FilterNode) . |
ConditionalBind(IVariable<E> var,
IValueExpression<E> expr,
boolean projection) |
Modifier and Type | Method and Description |
---|---|
E |
get(IBindingSet bindingSet)
Return the as bound value of the variable, constant, or
expression.
|
IValueExpression<E> |
getExpr()
Return the value expression.
|
IVariable<E> |
getVar()
Return the variable which will be bound to the result of evaluating the
associated value expression.
|
_clearProperty, _setProperty
__replaceArg, _set, 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
toString
annotations, argIterator, args, arity, clone, get, getEvaluationContext, getId, getProperty, getRequiredProperty, isController, setProperty, toArray, toArray, toShortString, toString
getProperty
protected transient Boolean projection
public ConditionalBind(ConditionalBind<E> op)
com.bigdata.bop.BOpUtility#deepCopy(FilterNode)
.public ConditionalBind(IVariable<E> var, IValueExpression<E> expr, boolean projection)
var
- The IVariable
which will be bound to the result of
evaluating the associated value expression.expr
- The IValueExpression
to be evaluated.public IVariable<E> getVar()
public IValueExpression<E> getExpr()
public E get(IBindingSet bindingSet)
IValueExpression
IConstant
is the
contant's value. The as bound value of an IVariable
is the
bound value in the given IBindingSet
-or- null
if
the variable is not bound in the IBindingSet
.get
in interface IValueExpression<E extends IV>
bindingSet
- The binding set.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.