class UdfUtil {

  public static ParamType getSchemaFromType(final Type type) {
    ParamType schema;
    if (type instanceof TypeVariable) {
      schema = GenericType.of(((TypeVariable) type).getName());
    } else {
      schema = JAVA_TO_ARG_TYPE.get(type);
      if (schema == null) {
        schema = handleParameterizedType(type);
      }
    }

    return schema;
  }

  private  UdfUtil();

}