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;
}
}