public class FastRangeCountOp<E> extends PipelineOp
IPredicate
. The cost of this operator is two key probes. Unlike a normal access path,
this operator does not bind variables to data in tuples in the underlying
index. Instead it binds a pre-identified variable to the aggregate (COUNT) of
the tuple range spanned by the IPredicate
.Modifier and Type | Class and Description |
---|---|
static interface |
FastRangeCountOp.Annotations |
protected static class |
FastRangeCountOp.ChunkTask<E>
Copy the source to the sink.
|
DEFAULT_INITIAL_CAPACITY
Constructor and Description |
---|
FastRangeCountOp(BOp[] args,
Map<String,Object> annotations)
Shallow copy constructor.
|
FastRangeCountOp(BOp[] args,
NV... annotations) |
FastRangeCountOp(FastRangeCountOp<E> op)
Deep copy constructor.
|
Modifier and Type | Method and Description |
---|---|
protected IConstraint[] |
constraints() |
FutureTask<Void> |
eval(BOpContext<IBindingSet> context)
Return a
FutureTask which computes the operator against the
evaluation context. |
protected IVariable<?> |
getCountVar() |
IPredicate<E> |
getPredicate() |
protected IVariable<?>[] |
getSelect() |
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 FastRangeCountOp(FastRangeCountOp<E> op)
op
- public FastRangeCountOp(BOp[] args, Map<String,Object> annotations)
args
- annotations
- protected IVariable<?> getCountVar()
protected IVariable<?>[] getSelect()
JoinAnnotations.SELECT
protected IConstraint[] constraints()
JoinAnnotations.CONSTRAINTS
public IPredicate<E> getPredicate()
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.