public static String getDataFormat ( Record metadataRecord ) throws HiveStageCheckedException { if ( metadataRecord . get ( SEP + VERSION ) . getValueAsInteger ( ) == 1 ) { return DEFAULT_DATA_FORMAT ; } if ( metadataRecord . has ( SEP + DATA_FORMAT ) ) { return metadataRecord . get ( SEP + DATA_FORMAT ) . getValueAsString ( ) ; } throw new HiveStageCheckedException ( Errors . HIVE_17 , DATA_FORMAT , metadataRecord ) ; }
Get DataFormat from Metadata Record .