public class SliceNode extends SolutionModifierBase
Modifier and Type | Class and Description |
---|---|
static interface |
SliceNode.Annotations |
DEFAULT_INITIAL_CAPACITY
Constructor and Description |
---|
SliceNode()
Slice with defaults that do not impose a constraint (offset is ZERO,
limit is
Long.MAX_VALUE ). |
SliceNode(BOp[] args,
Map<String,Object> anns)
Shallow copy constructor.
|
SliceNode(long offset,
long limit) |
SliceNode(SliceNode op)
Deep copy constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
getLimit() |
long |
getOffset() |
boolean |
hasSlice()
|
void |
setLimit(long limit) |
void |
setOffset(long offset) |
String |
toString(int indent)
The contract of this method at this level is under-specified.
|
getQueryHints, toString
addExplainHint, getExplainHints, getQueryHint, getQueryHint, getQueryHintAsBoolean, getQueryHintAsBoolean, getQueryHintAsInteger, replaceAllWith, setQueryHint, setQueryHints
addArg, addArg, addArgIfAbsent, annotations, annotationsEqual, argIterator, args, arity, clearProperty, copyAll, get, getProperty, indexOf, removeArg, replaceWith, setArg, setArgs, setId, setProperty, setUnboundProperty, toArray, toArray
annotationsEqual, annotationsToString, annotationsToString, annotationValueToString, checkArgs, clone, equals, getEvaluationContext, getId, getProperty, getRequiredProperty, hashCode, indent, isController, mutation, shortenName, toShortString
finalize, getClass, notify, notifyAll, wait, wait, wait
annotations, argIterator, args, arity, clone, get, getEvaluationContext, getId, getProperty, getRequiredProperty, isController, setProperty, toArray, toArray, toShortString
getProperty
public SliceNode(SliceNode op)
public SliceNode()
Long.MAX_VALUE
).public SliceNode(long offset, long limit)
offset
- The offset (origin ZERO).limit
- The limit (use Long.MAX_VALUE
if there is no limit).public void setOffset(long offset)
public long getOffset()
public void setLimit(long limit)
public long getLimit()
public boolean hasSlice()
public String toString(int indent)
CoreBaseBOp
CoreBaseBOp.toString()
Or:
- return a pretty-print representation of the object with indent
Note that the former contract may or may not include recursive descent through a tree-like
object, whereas the latter almost certainly does.toString
in interface BOp
toString
in interface IQueryNode
toString
in class CoreBaseBOp
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.