public class SliceOp extends PipelineOp
Note: join processing typically involves concurrent processes, hence the order of the results will not be stable unless the results are sorted before applying the slice. When a slice is applied without a sort, the same query may return different results each time it is evaluated.
Note: When running on an IBigdataFederation
, this operator must be
imposed on the query controller so it can count the solutions as they flow
through - see CoreBaseBOp.getEvaluationContext()
.
Note: SliceOp
is safe for concurrent invocations for the same query.
Multiple chunks may flow through multiple invocations of the operator so long
as they use the same BOpStats
object.
Modifier and Type | Class and Description |
---|---|
static interface |
SliceOp.Annotations |
static class |
SliceOp.SliceStats
|
DEFAULT_INITIAL_CAPACITY
Constructor and Description |
---|
SliceOp(BOp[] args,
Map<String,Object> annotations)
Shallow copy constructor.
|
SliceOp(BOp[] args,
NV... annotations) |
SliceOp(SliceOp 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. |
long |
getLimit() |
long |
getOffset() |
SliceOp.SliceStats |
newStats()
Return a new object which can be used to collect statistics on the
operator evaluation.
|
assertAtOnceJavaHeapOp, assertMaxParallelOne, getChunkCapacity, getChunkOfChunksCapacity, getChunkTimeout, getMaxMemory, getMaxParallel, isAtOnceEvaluation, isBlockedEvaluation, isLastPassRequested, isPipelinedEvaluation, isReorderSolutions, isSharedState
__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 SliceOp(SliceOp op)
op
- public long getOffset()
SliceOp.Annotations.OFFSET
public long getLimit()
SliceOp.Annotations.LIMIT
public SliceOp.SliceStats newStats()
PipelineOp
newStats
in class PipelineOp
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.