use of io.crate.operation.aggregation.impl.AggregationImplModule in project crate by crate.
the class GroupingBytesRefCollectorBenchmark method createGroupingCollector.
@Setup
public void createGroupingCollector() {
Functions functions = new ModulesBuilder().add(new AggregationImplModule()).createInjector().getInstance(Functions.class);
groupByMinCollector = createGroupByMinBytesRefCollector(functions);
List<BytesRef> keys = new ArrayList<>(Locale.getISOCountries().length);
for (String s : Locale.getISOCountries()) {
keys.add(new BytesRef(s));
}
rows = new ArrayList<>(20_000_000);
for (int i = 0; i < 20_000_000; i++) {
rows.add(new Row1(keys.get(i % keys.size())));
}
}
use of io.crate.operation.aggregation.impl.AggregationImplModule in project crate by crate.
the class GroupingIntegerCollectorBenchmark method createGroupingCollector.
@Setup
public void createGroupingCollector() {
Functions functions = new ModulesBuilder().add(new AggregationImplModule()).createInjector().getInstance(Functions.class);
groupBySumCollector = createGroupBySumCollector(functions);
rows = new ArrayList<>(20_000_000);
for (int i = 0; i < 20_000_000; i++) {
rows.add(new Row1(i % 200));
}
}
use of io.crate.operation.aggregation.impl.AggregationImplModule in project crate by crate.
the class SQLPlugin method nodeModules.
@Override
public Collection<Module> nodeModules() {
Collection<Module> modules = newArrayList();
modules.add(new SQLModule());
modules.add(new CircuitBreakerModule());
modules.add(new TransportExecutorModule());
modules.add(new JobModule());
modules.add(new CollectOperationModule());
modules.add(new FileCollectModule());
modules.add(new MetaDataModule());
modules.add(new MetaDataSysModule());
modules.add(new MetaDataBlobModule());
modules.add(new PgCatalogModule());
modules.add(new MetaDataInformationModule());
modules.add(new OperatorModule());
modules.add(new PredicateModule());
modules.add(new MonitorModule(settings));
modules.add(new SysClusterExpressionModule());
modules.add(new SysNodeExpressionModule());
modules.add(new AggregationImplModule());
modules.add(new ScalarFunctionModule());
modules.add(new TableFunctionModule());
modules.add(new BulkModule());
modules.add(new SysChecksModule());
modules.add(new SysNodeChecksModule());
modules.add(new RepositorySettingsModule());
modules.add(new SysRepositoriesModule());
return modules;
}
Aggregations