public Selector groupBy(Variable variable) {

        groupByList.add(variable);
        return this;
    }
Selector selecting query output stream attributes
modules/siddhi-query-api/src/main/java/io/siddhi/query/api/execution/query/selection/Selector.java