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);
}
Aggregations