public class LimitNode extends RelationalNode
childCount
Constructor and Description |
---|
LimitNode(int nodeID,
Expression limitExpr,
Expression offsetExpr) |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
All the implementation of Cloneable interface need to implement clone() method.
|
TupleBuffer |
getBufferDirect(int maxRows)
For subclasses to override if they wish to return a buffer rather than batches.
|
PlanNode |
getDescriptionProperties() |
int |
getLimit() |
Expression |
getLimitExpr() |
protected void |
getNodeString(StringBuffer buf) |
int |
getOffset() |
Expression |
getOffsetExpr() |
boolean |
hasBuffer()
Return true if the node provides a final buffer via getBuffer
|
boolean |
isImplicit() |
protected TupleBatch |
nextBatchDirect()
Template method for subclasses to implement.
|
void |
open() |
void |
reset() |
void |
setImplicit(boolean implicit) |
addBatchRow, addChild, close, closeDirect, copyTo, createLookupMap, getBatchSize, getBuffer, getBufferManager, getChildCount, getChildren, getClassName, getConnectionID, getContext, getDataManager, getElements, getEstimateNodeCardinality, getID, getNodeStatistics, getOutputElements, getParent, getProjectionIndexes, hasPendingRows, initialize, isBatchFull, isClosed, isLastBatch, nextBatch, nodeToString, projectTuple, projectTuple, pullBatch, requiresTransaction, setContext, setElements, setEstimateDepAccessCardinality, setEstimateDepJoinCost, setEstimateJoinCost, setEstimateNodeCardinality, setEstimateNodeSetSize, setID, setParent, terminateBatches, toString, unwrapException
public LimitNode(int nodeID, Expression limitExpr, Expression offsetExpr)
public void setImplicit(boolean implicit)
public boolean isImplicit()
protected TupleBatch nextBatchDirect() throws BlockedException, TeiidComponentException, TeiidProcessingException
RelationalNode
nextBatchDirect
in class RelationalNode
BlockedException
TeiidComponentException
TeiidProcessingException
- if exception related to user input occuredpublic void open() throws TeiidComponentException, TeiidProcessingException
open
in class RelationalNode
TeiidComponentException
TeiidProcessingException
public void reset()
reset
in class RelationalNode
protected void getNodeString(StringBuffer buf)
getNodeString
in class RelationalNode
public PlanNode getDescriptionProperties()
getDescriptionProperties
in class RelationalNode
public Object clone()
RelationalNode
clone
in class RelationalNode
public Expression getLimitExpr()
public Expression getOffsetExpr()
public int getLimit()
public int getOffset()
public boolean hasBuffer()
RelationalNode
hasBuffer
in interface BatchCollector.BatchProducer
hasBuffer
in class RelationalNode
public TupleBuffer getBufferDirect(int maxRows) throws BlockedException, TeiidComponentException, TeiidProcessingException
RelationalNode
getBufferDirect
in class RelationalNode
BlockedException
TeiidComponentException
TeiidProcessingException
Copyright © 2018 JBoss by Red Hat. All rights reserved.