BigML.Constants.getOpType C# (CSharp) Method

getOpType() public static method

public static getOpType ( string type ) : OpType
type string
return OpType
        public static OpType getOpType(string type)
        {
            switch (type)
            {
                case Constants.numeric:
                    return OpType.Numeric;
                case Constants.categorical:
                    return OpType.Categorical;
                case Constants.datetime:
                    return OpType.Datetime;
                case Constants.text:
                    return OpType.Text;
                case Constants.items:
                    return OpType.Items;
                default:
                    return OpType.Error;
            }
        }
Constants