Example usage for com.google.common.collect ImmutableList of

List of usage examples for com.google.common.collect ImmutableList of

Introduction

In this page you can find the example usage for com.google.common.collect ImmutableList of.

Prototype

public static <E> ImmutableList<E> of(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8, E e9, E e10, E e11) 

Source Link

Usage

From source file:io.druid.sql.calcite.rule.DruidRules.java

public static List<RelOptRule> rules() {
    return ImmutableList.of(
            new DruidQueryRule<>(Filter.class, PartialDruidQuery.Stage.WHERE_FILTER,
                    PartialDruidQuery::withWhereFilter),
            new DruidQueryRule<>(Project.class, PartialDruidQuery.Stage.SELECT_PROJECT,
                    PartialDruidQuery::withSelectProject),
            new DruidQueryRule<>(Sort.class, PartialDruidQuery.Stage.SELECT_SORT,
                    PartialDruidQuery::withSelectSort),
            new DruidQueryRule<>(Aggregate.class, PartialDruidQuery.Stage.AGGREGATE,
                    PartialDruidQuery::withAggregate),
            new DruidQueryRule<>(Project.class, PartialDruidQuery.Stage.POST_PROJECT,
                    PartialDruidQuery::withPostProject),
            new DruidQueryRule<>(Filter.class, PartialDruidQuery.Stage.HAVING_FILTER,
                    PartialDruidQuery::withHavingFilter),
            new DruidQueryRule<>(Sort.class, PartialDruidQuery.Stage.SORT, PartialDruidQuery::withSort),
            DruidOuterQueryRule.AGGREGATE, DruidOuterQueryRule.FILTER_AGGREGATE,
            DruidOuterQueryRule.FILTER_PROJECT_AGGREGATE, DruidOuterQueryRule.PROJECT_AGGREGATE);
}