Search in sources :

Example 1 with ISpillableTableFactory

use of org.apache.hyracks.dataflow.std.group.ISpillableTableFactory in project asterixdb by apache.

the class ExternalHashGroupbyTest method initial.

@Override
protected void initial(IHyracksTaskContext ctx, int tableSize, int numFrames) {
    ISpillableTableFactory tableFactory = new HashSpillableTableFactory(new IBinaryHashFunctionFamily[] { UTF8StringBinaryHashFunctionFamily.INSTANCE });
    buildOperator = new ExternalGroupBuildOperatorNodePushable(ctx, this.hashCode(), tableSize, numFrames * ctx.getInitialFrameSize(), keyFields, numFrames, comparatorFactories, normalizedKeyComputerFactory, partialAggrInPlace, inRecordDesc, outputRec, tableFactory);
    mergeOperator = new ExternalGroupWriteOperatorNodePushable(ctx, this.hashCode(), tableFactory, outputRec, outputRec, numFrames, keyFieldsAfterPartial, normalizedKeyComputerFactory, comparatorFactories, finalAggrInPlace);
}
Also used : ExternalGroupWriteOperatorNodePushable(org.apache.hyracks.dataflow.std.group.external.ExternalGroupWriteOperatorNodePushable) ISpillableTableFactory(org.apache.hyracks.dataflow.std.group.ISpillableTableFactory) HashSpillableTableFactory(org.apache.hyracks.dataflow.std.group.HashSpillableTableFactory) ExternalGroupBuildOperatorNodePushable(org.apache.hyracks.dataflow.std.group.external.ExternalGroupBuildOperatorNodePushable)

Aggregations

HashSpillableTableFactory (org.apache.hyracks.dataflow.std.group.HashSpillableTableFactory)1 ISpillableTableFactory (org.apache.hyracks.dataflow.std.group.ISpillableTableFactory)1 ExternalGroupBuildOperatorNodePushable (org.apache.hyracks.dataflow.std.group.external.ExternalGroupBuildOperatorNodePushable)1 ExternalGroupWriteOperatorNodePushable (org.apache.hyracks.dataflow.std.group.external.ExternalGroupWriteOperatorNodePushable)1