public class SpilledRuns extends Object
| Constructor and Description |
|---|
SpilledRuns(OperatorContext opContext,
SpillSet spillSet,
PriorityQueueCopierWrapper copier) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
SortImpl.SortResults |
finalMerge(List<? extends BatchGroup> bufferedBatches,
VectorContainer container,
int mergeRowCount,
VectorInitializer allocHelper) |
long |
getWriteBytes() |
boolean |
hasSpilled() |
void |
mergeAndSpill(List<BatchGroup> batchesToSpill,
int spillBatchRowCount,
VectorInitializer allocHelper) |
void |
mergeRuns(int targetCount,
long mergeMemoryPool,
int spillBatchRowCount,
VectorInitializer allocHelper) |
static List<BatchGroup> |
prepareSpillBatches(LinkedList<? extends BatchGroup> source,
int spillCount) |
void |
setSchema(BatchSchema schema) |
int |
size() |
public SpilledRuns(OperatorContext opContext, SpillSet spillSet, PriorityQueueCopierWrapper copier)
public void setSchema(BatchSchema schema)
public int size()
public boolean hasSpilled()
public long getWriteBytes()
public static List<BatchGroup> prepareSpillBatches(LinkedList<? extends BatchGroup> source, int spillCount)
public void mergeAndSpill(List<BatchGroup> batchesToSpill, int spillBatchRowCount, VectorInitializer allocHelper)
public void mergeRuns(int targetCount,
long mergeMemoryPool,
int spillBatchRowCount,
VectorInitializer allocHelper)
public SortImpl.SortResults finalMerge(List<? extends BatchGroup> bufferedBatches, VectorContainer container, int mergeRowCount, VectorInitializer allocHelper)
public void close()
Copyright © 2021 The Apache Software Foundation. All rights reserved.