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, unwrapException
public void reset()
reset
in class RelationalNode
public 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
RelationalNode
nextBatchDirect
in class RelationalNode
BlockedException
TeiidComponentException
TeiidProcessingException
- if exception related to user input occuredpublic void closeDirect()
closeDirect
in class RelationalNode
protected void getNodeString(StringBuffer str)
getNodeString
in class RelationalNode
protected void copyTo(SortNode target)
public Object clone()
RelationalNode
clone
in class RelationalNode
public PlanNode getDescriptionProperties()
getDescriptionProperties
in class RelationalNode
public TupleBuffer getBufferDirect(int maxRows) throws BlockedException, TeiidComponentException, TeiidProcessingException
RelationalNode
getBufferDirect
in class RelationalNode
BlockedException
TeiidComponentException
TeiidProcessingException
public boolean hasBuffer()
RelationalNode
hasBuffer
in interface BatchCollector.BatchProducer
hasBuffer
in class RelationalNode
public void setRowLimit(int rowLimit)
Copyright © 2018 JBoss by Red Hat. All rights reserved.