public class SortNode extends RelationalNode
childCount| Constructor and Description |
|---|
SortNode(int nodeID) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
All the implementation of Cloneable interface need to implement clone() method.
|
void |
closeDirect() |
protected void |
copyTo(SortNode target) |
TupleBuffer |
getBufferDirect(int maxRows)
For subclasses to override if they wish to return a buffer rather than batches.
|
PlanNode |
getDescriptionProperties() |
SortUtility.Mode |
getMode() |
protected void |
getNodeString(StringBuffer str) |
List<OrderByItem> |
getSortElements() |
boolean |
hasBuffer()
Return true if the node provides a final buffer via getBuffer
|
TupleBatch |
nextBatchDirect()
Template method for subclasses to implement.
|
void |
reset() |
void |
setMode(SortUtility.Mode mode) |
void |
setRowLimit(int rowLimit) |
void |
setSortElements(List<OrderByItem> items) |
addBatchRow, addChild, close, 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, open, projectTuple, projectTuple, pullBatch, requiresTransaction, setContext, setElements, setEstimateDepAccessCardinality, setEstimateDepJoinCost, setEstimateJoinCost, setEstimateNodeCardinality, setEstimateNodeSetSize, setID, setParent, terminateBatches, toString, unwrapExceptionpublic void reset()
reset in class RelationalNodepublic void setSortElements(List<OrderByItem> items)
public List<OrderByItem> getSortElements()
public SortUtility.Mode getMode()
public void setMode(SortUtility.Mode mode)
public TupleBatch nextBatchDirect() throws BlockedException, TeiidComponentException, TeiidProcessingException
RelationalNodenextBatchDirect in class RelationalNodeBlockedExceptionTeiidComponentExceptionTeiidProcessingException - if exception related to user input occuredpublic void closeDirect()
closeDirect in class RelationalNodeprotected void getNodeString(StringBuffer str)
getNodeString in class RelationalNodeprotected void copyTo(SortNode target)
public Object clone()
RelationalNodeclone in class RelationalNodepublic PlanNode getDescriptionProperties()
getDescriptionProperties in class RelationalNodepublic TupleBuffer getBufferDirect(int maxRows) throws BlockedException, TeiidComponentException, TeiidProcessingException
RelationalNodegetBufferDirect in class RelationalNodeBlockedExceptionTeiidComponentExceptionTeiidProcessingExceptionpublic boolean hasBuffer()
RelationalNodehasBuffer in interface BatchCollector.BatchProducerhasBuffer in class RelationalNodepublic void setRowLimit(int rowLimit)
Copyright © 2018 JBoss by Red Hat. All rights reserved.