Java 类org.apache.hadoop.hdfs.protocol.proto.AclProtos.AclEntryProto 实例源码

项目:hadoop    文件:PBHelper.java   
public static List<AclEntryProto> convertAclEntryProto(
    List<AclEntry> aclSpec) {
  ArrayList<AclEntryProto> r = Lists.newArrayListWithCapacity(aclSpec.size());
  for (AclEntry e : aclSpec) {
    AclEntryProto.Builder builder = AclEntryProto.newBuilder();
    builder.setType(convert(e.getType()));
    builder.setScope(convert(e.getScope()));
    builder.setPermissions(convert(e.getPermission()));
    if (e.getName() != null) {
      builder.setName(e.getName());
    }
    r.add(builder.build());
  }
  return r;
}
项目:hadoop    文件:PBHelper.java   
public static List<AclEntry> convertAclEntry(List<AclEntryProto> aclSpec) {
  ArrayList<AclEntry> r = Lists.newArrayListWithCapacity(aclSpec.size());
  for (AclEntryProto e : aclSpec) {
    AclEntry.Builder builder = new AclEntry.Builder();
    builder.setType(convert(e.getType()));
    builder.setScope(convert(e.getScope()));
    builder.setPermission(convert(e.getPermissions()));
    if (e.hasName()) {
      builder.setName(e.getName());
    }
    r.add(builder.build());
  }
  return r;
}
项目:aliyun-oss-hadoop-fs    文件:PBHelperClient.java   
public static List<AclEntry> convertAclEntry(List<AclEntryProto> aclSpec) {
  ArrayList<AclEntry> r = Lists.newArrayListWithCapacity(aclSpec.size());
  for (AclEntryProto e : aclSpec) {
    AclEntry.Builder builder = new AclEntry.Builder();
    builder.setType(convert(e.getType()));
    builder.setScope(convert(e.getScope()));
    builder.setPermission(convert(e.getPermissions()));
    if (e.hasName()) {
      builder.setName(e.getName());
    }
    r.add(builder.build());
  }
  return r;
}
项目:aliyun-oss-hadoop-fs    文件:PBHelperClient.java   
public static List<AclEntryProto> convertAclEntryProto(
    List<AclEntry> aclSpec) {
  ArrayList<AclEntryProto> r = Lists.newArrayListWithCapacity(aclSpec.size());
  for (AclEntry e : aclSpec) {
    AclEntryProto.Builder builder = AclEntryProto.newBuilder();
    builder.setType(convert(e.getType()));
    builder.setScope(convert(e.getScope()));
    builder.setPermissions(convert(e.getPermission()));
    if (e.getName() != null) {
      builder.setName(e.getName());
    }
    r.add(builder.build());
  }
  return r;
}
项目:big-c    文件:PBHelper.java   
public static List<AclEntryProto> convertAclEntryProto(
    List<AclEntry> aclSpec) {
  ArrayList<AclEntryProto> r = Lists.newArrayListWithCapacity(aclSpec.size());
  for (AclEntry e : aclSpec) {
    AclEntryProto.Builder builder = AclEntryProto.newBuilder();
    builder.setType(convert(e.getType()));
    builder.setScope(convert(e.getScope()));
    builder.setPermissions(convert(e.getPermission()));
    if (e.getName() != null) {
      builder.setName(e.getName());
    }
    r.add(builder.build());
  }
  return r;
}
项目:big-c    文件:PBHelper.java   
public static List<AclEntry> convertAclEntry(List<AclEntryProto> aclSpec) {
  ArrayList<AclEntry> r = Lists.newArrayListWithCapacity(aclSpec.size());
  for (AclEntryProto e : aclSpec) {
    AclEntry.Builder builder = new AclEntry.Builder();
    builder.setType(convert(e.getType()));
    builder.setScope(convert(e.getScope()));
    builder.setPermission(convert(e.getPermissions()));
    if (e.hasName()) {
      builder.setName(e.getName());
    }
    r.add(builder.build());
  }
  return r;
}
项目:hadoop-2.6.0-cdh5.4.3    文件:PBHelper.java   
public static List<AclEntryProto> convertAclEntryProto(
    List<AclEntry> aclSpec) {
  ArrayList<AclEntryProto> r = Lists.newArrayListWithCapacity(aclSpec.size());
  for (AclEntry e : aclSpec) {
    AclEntryProto.Builder builder = AclEntryProto.newBuilder();
    builder.setType(convert(e.getType()));
    builder.setScope(convert(e.getScope()));
    builder.setPermissions(convert(e.getPermission()));
    if (e.getName() != null) {
      builder.setName(e.getName());
    }
    r.add(builder.build());
  }
  return r;
}
项目:hadoop-2.6.0-cdh5.4.3    文件:PBHelper.java   
public static List<AclEntry> convertAclEntry(List<AclEntryProto> aclSpec) {
  ArrayList<AclEntry> r = Lists.newArrayListWithCapacity(aclSpec.size());
  for (AclEntryProto e : aclSpec) {
    AclEntry.Builder builder = new AclEntry.Builder();
    builder.setType(convert(e.getType()));
    builder.setScope(convert(e.getScope()));
    builder.setPermission(convert(e.getPermissions()));
    if (e.hasName()) {
      builder.setName(e.getName());
    }
    r.add(builder.build());
  }
  return r;
}
项目:FlexMap    文件:PBHelper.java   
public static List<AclEntryProto> convertAclEntryProto(
    List<AclEntry> aclSpec) {
  ArrayList<AclEntryProto> r = Lists.newArrayListWithCapacity(aclSpec.size());
  for (AclEntry e : aclSpec) {
    AclEntryProto.Builder builder = AclEntryProto.newBuilder();
    builder.setType(convert(e.getType()));
    builder.setScope(convert(e.getScope()));
    builder.setPermissions(convert(e.getPermission()));
    if (e.getName() != null) {
      builder.setName(e.getName());
    }
    r.add(builder.build());
  }
  return r;
}
项目:FlexMap    文件:PBHelper.java   
public static List<AclEntry> convertAclEntry(List<AclEntryProto> aclSpec) {
  ArrayList<AclEntry> r = Lists.newArrayListWithCapacity(aclSpec.size());
  for (AclEntryProto e : aclSpec) {
    AclEntry.Builder builder = new AclEntry.Builder();
    builder.setType(convert(e.getType()));
    builder.setScope(convert(e.getScope()));
    builder.setPermission(convert(e.getPermissions()));
    if (e.hasName()) {
      builder.setName(e.getName());
    }
    r.add(builder.build());
  }
  return r;
}
项目:hadoop-on-lustre2    文件:PBHelper.java   
public static List<AclEntryProto> convertAclEntryProto(
    List<AclEntry> aclSpec) {
  ArrayList<AclEntryProto> r = Lists.newArrayListWithCapacity(aclSpec.size());
  for (AclEntry e : aclSpec) {
    AclEntryProto.Builder builder = AclEntryProto.newBuilder();
    builder.setType(convert(e.getType()));
    builder.setScope(convert(e.getScope()));
    builder.setPermissions(convert(e.getPermission()));
    if (e.getName() != null) {
      builder.setName(e.getName());
    }
    r.add(builder.build());
  }
  return r;
}
项目:hadoop-on-lustre2    文件:PBHelper.java   
public static List<AclEntry> convertAclEntry(List<AclEntryProto> aclSpec) {
  ArrayList<AclEntry> r = Lists.newArrayListWithCapacity(aclSpec.size());
  for (AclEntryProto e : aclSpec) {
    AclEntry.Builder builder = new AclEntry.Builder();
    builder.setType(convert(e.getType()));
    builder.setScope(convert(e.getScope()));
    builder.setPermission(convert(e.getPermissions()));
    if (e.hasName()) {
      builder.setName(e.getName());
    }
    r.add(builder.build());
  }
  return r;
}