public void setSelector(QuerySelector selector) {
        this.selector = selector;
    }
This method sets selector for the delete on-demand Query runtime.

@param selector for the on-demand Query
modules/siddhi-core/src/main/java/io/siddhi/core/query/OnDemandQueryRuntime.java