public class ConditionalRoutingOp extends PipelineOp
Conditional routing can be useful where a different data flow is required based on the type of an object (for example a term identifier versus an inline term in the RDF database) or where there is a need to jump around a join group based on some condition.
Conditional routing will cause reordering of solutions when the alternate sink is specified as some solutions will flow to the primary sink while others flow to the alterate sink.
Modifier and Type | Class and Description |
---|---|
static interface |
ConditionalRoutingOp.Annotations |
DEFAULT_INITIAL_CAPACITY
Constructor and Description |
---|
ConditionalRoutingOp(BOp[] args,
Map<String,Object> annotations)
Shallow copy constructor.
|
ConditionalRoutingOp(BOp[] args,
NV... anns) |
ConditionalRoutingOp(ConditionalRoutingOp op)
Deep copy constructor.
|
Modifier and Type | Method and Description |
---|---|
FutureTask<Void> |
eval(BOpContext<IBindingSet> context)
Return a
FutureTask which computes the operator against the
evaluation context. |
IConstraint |
getCondition() |
assertAtOnceJavaHeapOp, assertMaxParallelOne, getChunkCapacity, getChunkOfChunksCapacity, getChunkTimeout, getMaxMemory, getMaxParallel, isAtOnceEvaluation, isBlockedEvaluation, isLastPassRequested, isPipelinedEvaluation, isReorderSolutions, isSharedState, newStats
__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
public ConditionalRoutingOp(ConditionalRoutingOp op)
op
- public ConditionalRoutingOp(BOp[] args, Map<String,Object> annotations)
args
- annotations
- public IConstraint getCondition()
public FutureTask<Void> eval(BOpContext<IBindingSet> context)
PipelineOp
FutureTask
which computes the operator against the
evaluation context. The caller is responsible for executing the
FutureTask
(this gives them the ability to hook the completion of
the computation).eval
in class PipelineOp
context
- The evaluation context.FutureTask
which will compute the operator's
evaluation.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.