presto-memory/src/main/java/io/prestosql/plugin/memory/MemoryPageSourceProvider.java/MemoryPageSourceProvider/applyFilter
class MemoryPageSourceProvider:    private Page applyFilter(Page page, Map<Integer, Domain> domains)
    {
        int[] positions = new int[page.getPositionCount()];
        int length = 0;
        for (int position = 0; position < page.getPositionCount(); ++position) {
            if (positionMatchesPredicate(page, position, domains)) {
                positions[length++] = position;
            }
        }
        return page.getPositions(positions, 0, length);
    }