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, unwrapExceptionpublic LimitNode(int nodeID,
Expression limitExpr,
Expression offsetExpr)
public void setImplicit(boolean implicit)
public boolean isImplicit()
protected TupleBatch nextBatchDirect() throws BlockedException, TeiidComponentException, TeiidProcessingException
RelationalNodenextBatchDirect in class RelationalNodeBlockedExceptionTeiidComponentExceptionTeiidProcessingException - if exception related to user input occuredpublic void open()
throws TeiidComponentException,
TeiidProcessingException
open in class RelationalNodeTeiidComponentExceptionTeiidProcessingExceptionpublic void reset()
reset in class RelationalNodeprotected void getNodeString(StringBuffer buf)
getNodeString in class RelationalNodepublic PlanNode getDescriptionProperties()
getDescriptionProperties in class RelationalNodepublic Object clone()
RelationalNodeclone in class RelationalNodepublic Expression getLimitExpr()
public Expression getOffsetExpr()
public int getLimit()
public int getOffset()
public boolean hasBuffer()
RelationalNodehasBuffer in interface BatchCollector.BatchProducerhasBuffer in class RelationalNodepublic TupleBuffer getBufferDirect(int maxRows) throws BlockedException, TeiidComponentException, TeiidProcessingException
RelationalNodegetBufferDirect in class RelationalNodeBlockedExceptionTeiidComponentExceptionTeiidProcessingExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.