hive-protolib/src/main/java/com/streamsets/pipeline/stage/lib/hive/HiveMetastoreUtil.java
public static String getAvroSchema(Record metadataRecord) throws HiveStageCheckedException{
    if (metadataRecord.has(SEP + AVRO_SCHEMA)) {
      return metadataRecord.get(SEP + AVRO_SCHEMA).getValueAsString();
    }
    throw new HiveStageCheckedException(Errors.HIVE_17, AVRO_SCHEMA, metadataRecord);
  }
public static String getAvroSchema(Record metadataRecord) throws HiveStageCheckedException{
    if (metadataRecord.has(SEP + AVRO_SCHEMA)) {
      return metadataRecord.get(SEP + AVRO_SCHEMA).getValueAsString();
    }
    throw new HiveStageCheckedException(Errors.HIVE_17, AVRO_SCHEMA, metadataRecord);
  }
public static String getAvroSchema ( Record metadataRecord ) throws HiveStageCheckedException { if ( metadataRecord . has ( SEP + AVRO_SCHEMA ) ) { return metadataRecord . get ( SEP + AVRO_SCHEMA ) . getValueAsString ( ) ; } throw new HiveStageCheckedException ( Errors . HIVE_17 , AVRO_SCHEMA , metadataRecord ) ; }
Get Avro Schema from Metadata Record.
@param metadataRecord the metadata record.
@return Avro Schema
@throws HiveStageCheckedException if the avro schema field does not exist in the metadata record.
Get Avro Schema from Metadata Record .