Java 类org.apache.hadoop.fs.azure.StorageInterface.CloudBlobContainerWrapper 实例源码

项目:hadoop    文件:AzureNativeFileSystemStore.java   
private static void storeVersionAttribute(CloudBlobContainerWrapper container) {
  HashMap<String, String> metadata = container.getMetadata();
  if (null == metadata) {
    metadata = new HashMap<String, String>();
  }
  metadata.put(VERSION_METADATA_KEY, CURRENT_WASB_VERSION);
  if (metadata.containsKey(OLD_VERSION_METADATA_KEY)) {
    metadata.remove(OLD_VERSION_METADATA_KEY);
  }
  container.setMetadata(metadata);
}
项目:hadoop    文件:AzureNativeFileSystemStore.java   
private static String retrieveVersionAttribute(
    CloudBlobContainerWrapper container) {
  HashMap<String, String> metadata = container.getMetadata();
  if (metadata == null) {
    return null;
  } else if (metadata.containsKey(VERSION_METADATA_KEY)) {
    return metadata.get(VERSION_METADATA_KEY);
  } else if (metadata.containsKey(OLD_VERSION_METADATA_KEY)) {
    return metadata.get(OLD_VERSION_METADATA_KEY);
  } else {
    return null;
  }
}
项目:aliyun-oss-hadoop-fs    文件:AzureNativeFileSystemStore.java   
private static void storeVersionAttribute(CloudBlobContainerWrapper container) {
  HashMap<String, String> metadata = container.getMetadata();
  if (null == metadata) {
    metadata = new HashMap<String, String>();
  }
  metadata.put(VERSION_METADATA_KEY, CURRENT_WASB_VERSION);
  if (metadata.containsKey(OLD_VERSION_METADATA_KEY)) {
    metadata.remove(OLD_VERSION_METADATA_KEY);
  }
  container.setMetadata(metadata);
}
项目:aliyun-oss-hadoop-fs    文件:AzureNativeFileSystemStore.java   
private static String retrieveVersionAttribute(
    CloudBlobContainerWrapper container) {
  HashMap<String, String> metadata = container.getMetadata();
  if (metadata == null) {
    return null;
  } else if (metadata.containsKey(VERSION_METADATA_KEY)) {
    return metadata.get(VERSION_METADATA_KEY);
  } else if (metadata.containsKey(OLD_VERSION_METADATA_KEY)) {
    return metadata.get(OLD_VERSION_METADATA_KEY);
  } else {
    return null;
  }
}
项目:big-c    文件:AzureNativeFileSystemStore.java   
private static void storeVersionAttribute(CloudBlobContainerWrapper container) {
  HashMap<String, String> metadata = container.getMetadata();
  if (null == metadata) {
    metadata = new HashMap<String, String>();
  }
  metadata.put(VERSION_METADATA_KEY, CURRENT_WASB_VERSION);
  if (metadata.containsKey(OLD_VERSION_METADATA_KEY)) {
    metadata.remove(OLD_VERSION_METADATA_KEY);
  }
  container.setMetadata(metadata);
}
项目:big-c    文件:AzureNativeFileSystemStore.java   
private static String retrieveVersionAttribute(
    CloudBlobContainerWrapper container) {
  HashMap<String, String> metadata = container.getMetadata();
  if (metadata == null) {
    return null;
  } else if (metadata.containsKey(VERSION_METADATA_KEY)) {
    return metadata.get(VERSION_METADATA_KEY);
  } else if (metadata.containsKey(OLD_VERSION_METADATA_KEY)) {
    return metadata.get(OLD_VERSION_METADATA_KEY);
  } else {
    return null;
  }
}
项目:hadoop-2.6.0-cdh5.4.3    文件:AzureNativeFileSystemStore.java   
private static void storeVersionAttribute(CloudBlobContainerWrapper container) {
  HashMap<String, String> metadata = container.getMetadata();
  if (null == metadata) {
    metadata = new HashMap<String, String>();
  }
  metadata.put(VERSION_METADATA_KEY, CURRENT_WASB_VERSION);
  if (metadata.containsKey(OLD_VERSION_METADATA_KEY)) {
    metadata.remove(OLD_VERSION_METADATA_KEY);
  }
  container.setMetadata(metadata);
}
项目:hadoop-2.6.0-cdh5.4.3    文件:AzureNativeFileSystemStore.java   
private static String retrieveVersionAttribute(
    CloudBlobContainerWrapper container) {
  HashMap<String, String> metadata = container.getMetadata();
  if (metadata == null) {
    return null;
  } else if (metadata.containsKey(VERSION_METADATA_KEY)) {
    return metadata.get(VERSION_METADATA_KEY);
  } else if (metadata.containsKey(OLD_VERSION_METADATA_KEY)) {
    return metadata.get(OLD_VERSION_METADATA_KEY);
  } else {
    return null;
  }
}