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,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,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,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;
  }
}

相关文章

买水果
比较全面的redis工具类
gson 反序列化到多态子类
java 版本的 mb_strwidth
JAVA 反转字符串的最快方法,大概比StringBuffer.reverse()性...
com.google.gson.internal.bind.ArrayTypeAdapter的实例源码...