public static OnDemandQuery query() {

        return new OnDemandQuery();
    }
Builder method to get a new on-demand query instance

@return a new OnDemandQuery instance
modules/siddhi-query-api/src/main/java/io/siddhi/query/api/execution/query/OnDemandQuery.java