class SiddhiUtils {

    protected static Object decodeSiddhiValue(String originalValue, Attribute.Type type) {

        switch (type) {
        case STRING:
            return originalValue;
        case BOOL:
            return Boolean.valueOf(originalValue);
        case DOUBLE:
            return Double.valueOf(originalValue);
        case INT:
            return Integer.valueOf(originalValue);
        case LONG:
            return Long.valueOf(originalValue);
        case FLOAT:
            return Float.valueOf(originalValue);
        default:
            throw new RuntimeException("Unsupported Column type: " + originalValue + "/" + type.toString());
        }

    }

    private  SiddhiUtils();

}