public class SortingSequence extends BufferingSequence
NodeSequence.AlternateSizeBatch, NodeSequence.Batch, NodeSequence.LimitBatch, NodeSequence.MultiWidthBatch, NodeSequence.Restartable, NodeSequence.RowAccessor, NodeSequence.RowFilter, NodeSequence.SingleWidthBatchbuffer, cache, extractor, logger, remainingRowCount, rowFactory, trace, width, workspaceNamedelegateLOGGER, NO_PASS_ROW_FILTER, PASS_ROW_FILTER| Constructor and Description |
|---|
SortingSequence(String workspaceName,
NodeSequence delegate,
RowExtractors.ExtractFromRow extractor,
BufferManager bufferMgr,
CachedNodeSupplier nodeCache,
boolean pack,
boolean useHeap,
boolean allowDuplicates,
NullOrder nullOrder) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Signal that this node sequence is no longer needed.
|
long |
getRowCount()
Get the number of rows in this sequence.
|
protected Iterator<BufferedRows.BufferedRow> |
initialize()
Initialize this node sequence only the first time that
nextBatch() is called. |
NodeSequence.Batch |
nextBatch()
Get the next batch of
NodeKey instances. |
String |
toString() |
batchFrom, createRow, isEmpty, loadAll, rowCountwidthappend, batchFilteredWith, batchOf, batchOf, batchOf, batchOfKeys, batchOfKeys, batchOfKeys, batchOfKeys, batchWithCount, copy, emptyBatch, emptySequence, filter, keyFor, limit, limit, merging, requireBoth, requireEither, skip, withBatch, withBatches, withBatches, withNode, withNodeKeys, withNodeKeys, withNodeKeys, withNodeKeys, withNodes, withNodespublic SortingSequence(String workspaceName, NodeSequence delegate, RowExtractors.ExtractFromRow extractor, BufferManager bufferMgr, CachedNodeSupplier nodeCache, boolean pack, boolean useHeap, boolean allowDuplicates, NullOrder nullOrder)
public long getRowCount()
NodeSequencegetRowCount in class DelegatingSequencepublic NodeSequence.Batch nextBatch()
NodeSequenceNodeKey instances.nextBatch in class DelegatingSequenceprotected Iterator<BufferedRows.BufferedRow> initialize()
nextBatch() is called.public void close()
NodeSequenceclose in class BufferingSequenceCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.