public static Type getTypeForName(String name) { for (Type t : values()) { if (t.name().equals(name)) { return t; } } throw new IllegalArgumentException("The provided name doesn't map to any known type: " + name); }
buf.append(type.name()); buf.append(" ").append(col.getName()); if (col.getTypeAttributes() != null) {
throw new IllegalStateException(String.format( "invalid type %s for column '%s' in scan token, expected: %s", column.getType().name(), column.getName(), schema.getType().name()));