List of usage examples for java.sql JDBCType getVendorTypeNumber
public Integer getVendorTypeNumber()
From source file:com.thinkbiganalytics.discovery.util.ParserHelper.java
public static String sqlTypeToHiveType(JDBCType jdbcType) { if (jdbcType != null) { Integer type = jdbcType.getVendorTypeNumber(); return sqlTypeToHiveType(type); }//from w w w . j a va 2s . c om return null; }
From source file:org.elasticsearch.xpack.qa.sql.rest.RestSqlTestCase.java
/** * Builds that map that is returned in the header for each column. */// ww w . java2 s.c o m public static Map<String, Object> columnInfo(String mode, String name, String type, JDBCType jdbcType, int size) { Map<String, Object> column = new HashMap<>(); column.put("name", name); column.put("type", type); if ("jdbc".equals(mode)) { column.put("jdbc_type", jdbcType.getVendorTypeNumber()); column.put("display_size", size); } return unmodifiableMap(column); }