public void setOutputAttributes(List<Attribute> outputAttributeList) {
        this.outputAttributes = outputAttributeList.toArray(new Attribute[outputAttributeList.size()]);
    }
This method sets the output attribute list of the given on-demand Query.

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