public class MockTermResolverOp extends PipelineOp
AssignmentNode
inside queries; these construct fresh values, which
are mocked in a first step. Whenever these values are used later in the
query, e.g. by joining such a mock URI with a statement pattern, they need to
be resolved to their real IVs.ØModifier and Type | Class and Description |
---|---|
static interface |
MockTermResolverOp.Annotations |
DEFAULT_INITIAL_CAPACITY
Constructor and Description |
---|
MockTermResolverOp(BOp[] args,
IVariable<?>[] vars,
String namespace,
long timestamp) |
MockTermResolverOp(BOp[] args,
Map<String,Object> annotations) |
MockTermResolverOp(BOp[] args,
NV... annotations) |
MockTermResolverOp(MockTermResolverOp op) |
Modifier and Type | Method and Description |
---|---|
FutureTask<Void> |
eval(BOpContext<IBindingSet> context)
Return a
FutureTask which computes the operator against the
evaluation context. |
IVariable<?>[] |
getVars()
Return the variables for which mocked IVs are resolved.
|
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 MockTermResolverOp(BOp[] args, Map<String,Object> annotations)
args
- annotations
- public MockTermResolverOp(MockTermResolverOp op)
op
- public MockTermResolverOp(BOp[] args, IVariable<?>[] vars, String namespace, long timestamp)
vars
- The variables for which to resolve mocked IVs. Resolving is only
attempted for those variables which are actually bound in given
solution.namespace
- The namespace of the LexiconRelation
.timestamp
- The timestamp against which to read.public IVariable<?>[] getVars()
null
iff all variables should resolved.MockTermResolverOp.Annotations.VARS
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.