use of io.crate.metadata.Functions in project crate by crate.
the class S3FileReadingCollectorTest method prepare.
@Before
public void prepare() throws Exception {
NodeContext nodeCtx = new NodeContext(new Functions(Map.of()));
inputFactory = new InputFactory(nodeCtx);
}
use of io.crate.metadata.Functions in project crate by crate.
the class FileReadingCollectorTest method prepare.
@Before
public void prepare() throws Exception {
NodeContext nodeCtx = new NodeContext(new Functions(Map.of()));
inputFactory = new InputFactory(nodeCtx);
}
use of io.crate.metadata.Functions in project crate by crate.
the class FileReadingIteratorTest method prepare.
@Before
public void prepare() {
NodeContext nodeCtx = new NodeContext(new Functions(Map.of()));
inputFactory = new InputFactory(nodeCtx);
}
use of io.crate.metadata.Functions 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.metadata.Functions in project crate by crate.
the class AggregatorTest method setUpFunctions.
@Before
public void setUpFunctions() {
Functions functions = getFunctions();
FunctionIdent countAggIdent = new FunctionIdent(CountAggregation.NAME, Arrays.<DataType>asList(DataTypes.STRING));
countImpl = (AggregationFunction) functions.get(countAggIdent);
}
Aggregations