public class SortUtility extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SortUtility.Mode |
Constructor and Description |
---|
SortUtility(TupleSource ts,
List<? extends Expression> expressions,
List<Boolean> types,
SortUtility.Mode mode,
BufferManager bufferManager,
String connectionID,
List schema) |
SortUtility(TupleSource sourceID,
List<OrderByItem> items,
SortUtility.Mode mode,
BufferManager bufferMgr,
String groupName,
List<? extends Expression> schema) |
SortUtility(TupleSource sourceID,
SortUtility.Mode mode,
BufferManager bufferMgr,
String groupName,
List<? extends Expression> schema,
List<Boolean> sortTypes,
List<SortSpecification.NullOrdering> nullOrderings,
int[] cols) |
Modifier and Type | Method and Description |
---|---|
protected void |
doMerge(int rowLimit) |
protected void |
initialSort(boolean onePass,
boolean lowLatency,
int rowLimit)
creates sorted sublists stored in tuplebuffers
|
boolean |
isDistinct() |
boolean |
isDoneReading() |
protected void |
mergePhase(int rowLimit) |
List<TupleBuffer> |
onePassSort(boolean lowLatency) |
void |
remove() |
void |
setNonBlocking(boolean b) |
void |
setStableSort(boolean stableSort) |
void |
setWorkingBuffer(TupleBuffer workingBuffer) |
TupleBuffer |
sort() |
TupleBuffer |
sort(int rowLimit) |
public SortUtility(TupleSource sourceID, List<OrderByItem> items, SortUtility.Mode mode, BufferManager bufferMgr, String groupName, List<? extends Expression> schema)
public SortUtility(TupleSource sourceID, SortUtility.Mode mode, BufferManager bufferMgr, String groupName, List<? extends Expression> schema, List<Boolean> sortTypes, List<SortSpecification.NullOrdering> nullOrderings, int[] cols)
public SortUtility(TupleSource ts, List<? extends Expression> expressions, List<Boolean> types, SortUtility.Mode mode, BufferManager bufferManager, String connectionID, List schema)
public TupleBuffer sort() throws TeiidComponentException, TeiidProcessingException
public TupleBuffer sort(int rowLimit) throws TeiidComponentException, TeiidProcessingException
public List<TupleBuffer> onePassSort(boolean lowLatency) throws TeiidComponentException, TeiidProcessingException
protected void initialSort(boolean onePass, boolean lowLatency, int rowLimit) throws TeiidComponentException, TeiidProcessingException
public void setWorkingBuffer(TupleBuffer workingBuffer)
protected void mergePhase(int rowLimit) throws TeiidComponentException, TeiidProcessingException
protected void doMerge(int rowLimit) throws TeiidComponentException, TeiidProcessingException
public boolean isDistinct()
public void remove()
public void setNonBlocking(boolean b)
public void setStableSort(boolean stableSort)
public boolean isDoneReading()
Copyright © 2019. All rights reserved.