use of io.trino.operator.window.pattern.ProjectingPagesWindowIndex in project trino by trinodb.
the class MatchAssert method identityEvaluator.
private static LabelEvaluator identityEvaluator(int[] input) {
// create dummy WindowIndex for the LabelEvaluator
PagesIndex pagesIndex = new PagesIndex.TestingFactory(false).newPagesIndex(ImmutableList.of(), 1);
pagesIndex.addPage(new Page(1));
return new IdentityEvaluator(input, new ProjectingPagesWindowIndex(pagesIndex, 0, 1, ImmutableList.of(), ImmutableList.of()));
}
Aggregations