Search in sources :

Example 6 with SpillSet

use of org.apache.drill.exec.physical.impl.spill.SpillSet in project drill by apache.

the class ExternalSortBatch method createNewSortImpl.

/**
 * Method to create new instances of SortImpl
 * @return SortImpl
 */
private SortImpl createNewSortImpl() {
    SpillSet spillSet = new SpillSet(context.getConfig(), context.getHandle(), popConfig);
    PriorityQueueCopierWrapper copierHolder = new PriorityQueueCopierWrapper(oContext);
    SpilledRuns spilledRuns = new SpilledRuns(oContext, spillSet, copierHolder);
    return new SortImpl(oContext, sortConfig, spilledRuns, outputWrapperContainer);
}
Also used : SpillSet(org.apache.drill.exec.physical.impl.spill.SpillSet)

Aggregations

SpillSet (org.apache.drill.exec.physical.impl.spill.SpillSet)6 FieldReference (org.apache.drill.common.expression.FieldReference)4 OperatorContext (org.apache.drill.exec.ops.OperatorContext)3 Ordering (org.apache.drill.common.logical.data.Order.Ordering)2 Sort (org.apache.drill.exec.physical.config.Sort)2 ChainedHashTable (org.apache.drill.exec.physical.impl.common.ChainedHashTable)2 IndexPointer (org.apache.drill.exec.physical.impl.common.IndexPointer)2 FragmentHandle (org.apache.drill.exec.proto.ExecProtos.FragmentHandle)2 QueryId (org.apache.drill.exec.proto.UserBitShared.QueryId)2 TypedFieldId (org.apache.drill.exec.record.TypedFieldId)2 SchemaChangeException (org.apache.drill.exec.exception.SchemaChangeException)1 FragmentContext (org.apache.drill.exec.ops.FragmentContext)1 MockRecordBatch (org.apache.drill.exec.physical.impl.MockRecordBatch)1 SpilledRecordBatch (org.apache.drill.exec.physical.impl.aggregate.SpilledRecordBatch)1 HashJoinMemoryCalculatorImpl (org.apache.drill.exec.physical.impl.join.HashJoinMemoryCalculatorImpl)1 DirectRowSet (org.apache.drill.exec.physical.rowSet.DirectRowSet)1 RowSet (org.apache.drill.exec.physical.rowSet.RowSet)1 RowSetBuilder (org.apache.drill.exec.physical.rowSet.RowSetBuilder)1 BatchSchema (org.apache.drill.exec.record.BatchSchema)1 CloseableRecordBatch (org.apache.drill.exec.record.CloseableRecordBatch)1