public static ArgumentType getType(String inType) { if (inType.equalsIgnoreCase("long")) { // A synonym in some places in the code... return INT_FAMILY; } else if (inType.equalsIgnoreCase("double")) { // A synonym in some places in the code... return FLOAT_FAMILY; } else if (VectorizationContext.decimalTypePattern.matcher(inType).matches()) { return DECIMAL; } else if (VectorizationContext.charTypePattern.matcher(inType).matches()) { return CHAR; } else if (VectorizationContext.varcharTypePattern.matcher(inType).matches()) { return VARCHAR; } return valueOf(inType.toUpperCase()); }
public static ArgumentType getType(String inType) { if (inType.equalsIgnoreCase("long")) { // A synonym in some places in the code... return INT_FAMILY; } else if (inType.equalsIgnoreCase("double")) { // A synonym in some places in the code... return FLOAT_FAMILY; } else if (VectorizationContext.decimalTypePattern.matcher(inType).matches()) { return DECIMAL; } else if (VectorizationContext.charTypePattern.matcher(inType).matches()) { return CHAR; } else if (VectorizationContext.varcharTypePattern.matcher(inType).matches()) { return VARCHAR; } return valueOf(inType.toUpperCase()); }
public static ArgumentType getType(String inType) { if (inType.equalsIgnoreCase("long")) { // A synonym in some places in the code... return INT_FAMILY; } else if (inType.equalsIgnoreCase("double")) { // A synonym in some places in the code... return FLOAT_FAMILY; } else if (VectorizationContext.decimalTypePattern.matcher(inType).matches()) { return DECIMAL; } else if (VectorizationContext.charTypePattern.matcher(inType).matches()) { return CHAR; } else if (VectorizationContext.varcharTypePattern.matcher(inType).matches()) { return VARCHAR; } return valueOf(inType.toUpperCase()); }