@Test public void testIsSupportedType() { Assert.assertFalse(DataType.isKylinSupported("array<int>")); Assert.assertFalse(DataType.isKylinSupported("map<string, int>")); Assert.assertFalse(DataType.isKylinSupported(null)); }
public static boolean isKylinSupported(String typeName) { if (typeName == null) { return false; } String formattedTypeName = typeName.trim().toLowerCase(Locale.ROOT); formattedTypeName = replaceLegacy(formattedTypeName); return TYPE_PATTERN.matcher(formattedTypeName).matches(); }
DataType implements Serializable { public static boolean isKylinSupported(String typeName) { if (typeName == null) { return false; } String formattedTypeName = typeName.trim().toLowerCase(Locale.ROOT); formattedTypeName = replaceLegacy(formattedTypeName); return TYPE_PATTERN.matcher(formattedTypeName).matches(); } }
DataType implements Serializable { public static boolean isKylinSupported(String typeName) { if (typeName == null) { return false; } String formattedTypeName = typeName.trim().toLowerCase(Locale.ROOT); formattedTypeName = replaceLegacy(formattedTypeName); return TYPE_PATTERN.matcher(formattedTypeName).matches(); } DataType(String name, int precision, int scale); private  DataType(String datatype); }
DataType implements Serializable { public static boolean isKylinSupported(String typeName) { if (typeName == null) { return false; } String formattedTypeName = typeName.trim().toLowerCase(Locale.ROOT); formattedTypeName = replaceLegacy(formattedTypeName); return TYPE_PATTERN.matcher(formattedTypeName).matches(); } DataType(String name, int precision, int scale); private  DataType(String datatype); static synchronized void register(String... typeNames); static synchronized void registerComplex(String... typeNames); static boolean isComplexType(DataType type); static DataType getType(String type); static boolean isKylinSupported(String typeName); static boolean isNumberFamily(String name); DataTypeOrder getOrder(); int compare(String value1, String value2); boolean needCompare(); int getStorageBytesEstimate(); double getStorageBytesEstimate(double count); boolean isStringFamily(); boolean isIntegerFamily(); boolean isNumberFamily(); boolean isDateTimeFamily(); boolean isTimeFamily(); boolean isDate(); boolean isTime(); boolean isTimestamp(); boolean isDatetime(); boolean isTinyInt(); boolean isSmallInt(); boolean isInt(); boolean isBigInt(); boolean isFloat(); boolean isDouble(); boolean isDecimal(); boolean isBoolean(); String getName(); int getPrecision(); int getScale(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
DataType implements Serializable { public static boolean isKylinSupported(String typeName) { if (typeName == null) { return false; } String formattedTypeName = typeName.trim().toLowerCase(Locale.ROOT); formattedTypeName = replaceLegacy(formattedTypeName); return TYPE_PATTERN.matcher(formattedTypeName).matches(); } DataType(String name, int precision, int scale); private  DataType(String datatype); static synchronized void register(String... typeNames); static synchronized void registerComplex(String... typeNames); static boolean isComplexType(DataType type); static DataType getType(String type); static boolean isKylinSupported(String typeName); static boolean isNumberFamily(String name); DataTypeOrder getOrder(); int compare(String value1, String value2); boolean needCompare(); int getStorageBytesEstimate(); double getStorageBytesEstimate(double count); boolean isStringFamily(); boolean isIntegerFamily(); boolean isNumberFamily(); boolean isDateTimeFamily(); boolean isTimeFamily(); boolean isDate(); boolean isTime(); boolean isTimestamp(); boolean isDatetime(); boolean isTinyInt(); boolean isSmallInt(); boolean isInt(); boolean isBigInt(); boolean isFloat(); boolean isDouble(); boolean isDecimal(); boolean isBoolean(); String getName(); int getPrecision(); int getScale(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); static final Set<String> INTEGER_FAMILY; static final Set<String> NUMBER_FAMILY; static final Set<String> DATETIME_FAMILY; static final Set<String> STRING_FAMILY; static final DataType ANY; static final BytesSerializer<DataType> serializer; }