com.bigdata.rdf.sparql.ast
Class SliceNode
java.lang.Object
com.bigdata.bop.CoreBaseBOp
com.bigdata.bop.ModifiableBOpBase
com.bigdata.rdf.sparql.ast.ASTBase
com.bigdata.rdf.sparql.ast.QueryNodeBase
com.bigdata.rdf.sparql.ast.SolutionModifierBase
com.bigdata.rdf.sparql.ast.SliceNode
- All Implemented Interfaces:
- BOp, IQueryNode, IPropertySet, Serializable, Cloneable
public class SliceNode
- extends SolutionModifierBase
AST node for a SLICE (offset/limit).
- Version:
- $Id: SliceNode.java 5174 2011-09-11 20:18:18Z thompsonbry $
- Author:
- Bryan Thompson
- See Also:
- Serialized Form
| Methods inherited from class com.bigdata.bop.ModifiableBOpBase |
addArg, addArg, addArgIfAbsent, annotations, annotationsEqual, argIterator, args, arity, clearProperty, copyAll, get, getProperty, mutation, removeArg, replaceWith, setArg, setArgs, setId, setProperty, setUnboundProperty, toArray, toArray |
| Methods inherited from class com.bigdata.bop.CoreBaseBOp |
annotationsEqual, annotationsToString, checkArgs, clone, equals, getEvaluationContext, getId, getProperty, getRequiredProperty, hashCode, indent, isController, toShortString |
SliceNode
public SliceNode(SliceNode op)
- Deep copy constructor.
SliceNode
public SliceNode(BOp[] args,
Map<String,Object> anns)
- Shallow copy constructor.
SliceNode
public SliceNode()
- Slice with defaults that do not impose a constraint (offset is ZERO,
limit is
Long.MAX_VALUE).
SliceNode
public SliceNode(long offset,
long limit)
- Parameters:
offset - The offset (origin ZERO).limit - The limit (use Long.MAX_VALUE if there is no limit).
setOffset
public void setOffset(long offset)
getOffset
public long getOffset()
setLimit
public void setLimit(long limit)
getLimit
public long getLimit()
hasSlice
public boolean hasSlice()
- Return
true if the slice will impose a constraint (
offset GT ZERO or
limit LT Long.MAX_VALUE).
toString
public String toString(int indent)
- Description copied from interface:
IQueryNode
- Pretty print with an indent.
Copyright © 2006-2012 SYSTAP, LLC. All Rights Reserved.