@Override
    protected Object execute(Object data, State state) {
        Set set = new HashSet();
        set.add(data);
        return set;
    }
return set object, containing only one element: data.

@param data  array of Double values
@param state
@return the set object
modules/siddhi-core/src/main/java/io/siddhi/core/executor/function/CreateSetFunctionExecutor.java