hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/web/client/OzoneBucket.java
public void putKey(File dataFile) throws OzoneException {
    if (dataFile == null) {
      throw new OzoneRestClientException("Invalid file object.");
    }
    String keyName = dataFile.getName();
    putKey(keyName, dataFile);
  }
/**
   * Puts an Object in Ozone Bucket.
   *
   * @param dataFile - File from which you want the data to be put. Key Name
   *                 will same as the file name, devoid of any path.
   * @throws OzoneException
   */
Puts an Object in Ozone Bucket.
@param dataFile - File from which you want the data to be put. Key Name
will same as the file name, devoid of any path.
Puts an Object in Ozone Bucket . @param dataFile - File from which you want the data to be put . Key Name will same as the file name devoid of any path .
public void putKey(File dataFile) throws OzoneException {
    if (dataFile == null) {
      throw new OzoneRestClientException("Invalid file object.");
    }
    String keyName = dataFile.getName();
    putKey(keyName, dataFile);
  }
public void putKey ( File dataFile ) throws OzoneException { if ( dataFile == null ) { throw new OzoneRestClientException ( "Invalid file object." ) ; } String keyName = dataFile . getName ( ) ; putKey ( keyName , dataFile ) ; }
Puts an Object in Ozone Bucket.
Puts an Object in Ozone Bucket .