public static PrimitiveType fromTypeAndFormat(String type, String format) { if (StringUtils.isNotBlank(type) && type.equals("object")) { return null; } return fromName(datatypeMappings.get(String.format("%s_%s", StringUtils.isBlank(type) ? "" : type, StringUtils.isBlank(format) ? "" : format))); }
public static Schema createProperty(String name) { final PrimitiveType item = fromName(name); return item == null ? null : item.createProperty(); }
public static Type typeFromString(String type) { final PrimitiveType primitive = PrimitiveType.fromName(type); if (primitive != null) { return primitive.getKeyClass(); } try { return loadClassByName(type); } catch (Exception e) { LOGGER.error(String.format("Failed to resolve '%s' into class", type), e); } return null; }
primitiveType = PrimitiveType.fromName(resolvedSchemaAnnotation.type());
public static PrimitiveType fromTypeAndFormat(String type, String format) { if (StringUtils.isNotBlank(type) && type.equals("object")) { return null; } return fromName(datatypeMappings.get(String.format("%s_%s", StringUtils.isBlank(type) ? "" : type, StringUtils.isBlank(format) ? "" : format))); }
public static Schema createProperty(String name) { final PrimitiveType item = fromName(name); return item == null ? null : item.createProperty(); }
public static Type typeFromString(String type) { final PrimitiveType primitive = PrimitiveType.fromName(type); if (primitive != null) { return primitive.getKeyClass(); } try { return loadClassByName(type); } catch (Exception e) { LOGGER.error(String.format("Failed to resolve '%s' into class", type), e); } return null; }
primitiveType = PrimitiveType.fromName(resolvedSchemaAnnotation.type());