jdbc-protolib/src/main/java/com/streamsets/pipeline/lib/jdbc/typesupport/JdbcTypeSupport.java
public Field generateJdbcTypeInfoFieldForMetadataRecord(JdbcTypeInfo jdbcTypeInfo) {
    Map<String, Field> fields = new HashMap<>();
    fields.put(TYPE, Field.create(jdbcTypeInfo.getJdbcType().name()));
    fields.put(EXTRA_INFO, generateExtraInfoFieldForMetadataRecord(jdbcTypeInfo));
    return Field.create(fields);
  }
public Field generateJdbcTypeInfoFieldForMetadataRecord(JdbcTypeInfo jdbcTypeInfo) {
    Map<String, Field> fields = new HashMap<>();
    fields.put(TYPE, Field.create(jdbcTypeInfo.getJdbcType().name()));
    fields.put(EXTRA_INFO, generateExtraInfoFieldForMetadataRecord(jdbcTypeInfo));
    return Field.create(fields);
  }
public Field generateJdbcTypeInfoFieldForMetadataRecord ( JdbcTypeInfo jdbcTypeInfo ) { Map < String , Field > fields = new HashMap <> ( ) ; fields . put ( TYPE , Field . create ( jdbcTypeInfo . getJdbcType ( ) . name ( ) ) ) ; fields . put ( EXTRA_INFO , generateExtraInfoFieldForMetadataRecord ( jdbcTypeInfo ) ) ; return Field . create ( fields ) ; }
Generate Hive Type Info Representation inside the Metadata Record.
@param jdbcTypeInfo {@link JdbcTypeInfo}
@return {@link Field} which is the field in the metadata record which represents {@link JdbcTypeInfo}
Generate Hive Type Info Representation inside the Metadata Record .