Search in sources :

Example 1 with ProjectingPagesWindowIndex

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()));
}
Also used : ProjectingPagesWindowIndex(io.trino.operator.window.pattern.ProjectingPagesWindowIndex) Page(io.trino.spi.Page) PagesIndex(io.trino.operator.PagesIndex)

Aggregations

PagesIndex (io.trino.operator.PagesIndex)1 ProjectingPagesWindowIndex (io.trino.operator.window.pattern.ProjectingPagesWindowIndex)1 Page (io.trino.spi.Page)1