hive-protolib/src/main/java/com/streamsets/pipeline/stage/lib/hive/HiveMetastoreUtil.java
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);
  }
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);
  }
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.
@param metadataRecord the metadata record
@return the label of dataFormat
Get DataFormat from Metadata Record .