com.bigdata.rdf.sparql.ast
Class SliceNode

java.lang.Object
  extended by com.bigdata.bop.CoreBaseBOp
      extended by com.bigdata.bop.ModifiableBOpBase
          extended by com.bigdata.rdf.sparql.ast.ASTBase
              extended by com.bigdata.rdf.sparql.ast.QueryNodeBase
                  extended by com.bigdata.rdf.sparql.ast.SolutionModifierBase
                      extended by 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

Field Summary
 
Fields inherited from class com.bigdata.bop.CoreBaseBOp
DEFAULT_INITIAL_CAPACITY
 
Fields inherited from interface com.bigdata.bop.BOp
NOANNS, NOARGS
 
Constructor Summary
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.
 
Method Summary
 long getLimit()
           
 long getOffset()
           
 boolean hasSlice()
          Return true if the slice will impose a constraint ( offset GT ZERO or limit LT Long.MAX_VALUE).
 void setLimit(long limit)
           
 void setOffset(long offset)
           
 String toString(int indent)
          Pretty print with an indent.
 
Methods inherited from class com.bigdata.rdf.sparql.ast.QueryNodeBase
toString
 
Methods inherited from class com.bigdata.rdf.sparql.ast.ASTBase
getQueryHint, getQueryHint, getQueryHintAsBoolean, getQueryHintAsBoolean, getQueryHints, replaceAllWith, setQueryHint, setQueryHints
 
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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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).
Method Detail

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.