public StoreQuery select(Selector selector) {

        onDemandQuery.select(selector);
        return this;
    }
Builder method to set a selector to the store query

@param selector selector for the store query
@return updated store query
modules/siddhi-query-api/src/main/java/io/siddhi/query/api/execution/query/StoreQuery.java