Java 类org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.SnapshottableDirectoryListingProto 实例源码

项目:hadoop    文件:PBHelper.java   
public static SnapshottableDirectoryStatus[] convert(
    SnapshottableDirectoryListingProto sdlp) {
  if (sdlp == null)
    return null;
  List<SnapshottableDirectoryStatusProto> list = sdlp
      .getSnapshottableDirListingList();
  if (list.isEmpty()) {
    return new SnapshottableDirectoryStatus[0];
  } else {
    SnapshottableDirectoryStatus[] result = 
        new SnapshottableDirectoryStatus[list.size()];
    for (int i = 0; i < list.size(); i++) {
      result[i] = PBHelper.convert(list.get(i));
    }
    return result;
  }
}
项目:aliyun-oss-hadoop-fs    文件:PBHelperClient.java   
public static SnapshottableDirectoryStatus[] convert(
    SnapshottableDirectoryListingProto sdlp) {
  if (sdlp == null)
    return null;
  List<SnapshottableDirectoryStatusProto> list = sdlp
      .getSnapshottableDirListingList();
  if (list.isEmpty()) {
    return new SnapshottableDirectoryStatus[0];
  } else {
    SnapshottableDirectoryStatus[] result =
        new SnapshottableDirectoryStatus[list.size()];
    for (int i = 0; i < list.size(); i++) {
      result[i] = convert(list.get(i));
    }
    return result;
  }
}
项目:big-c    文件:PBHelper.java   
public static SnapshottableDirectoryStatus[] convert(
    SnapshottableDirectoryListingProto sdlp) {
  if (sdlp == null)
    return null;
  List<SnapshottableDirectoryStatusProto> list = sdlp
      .getSnapshottableDirListingList();
  if (list.isEmpty()) {
    return new SnapshottableDirectoryStatus[0];
  } else {
    SnapshottableDirectoryStatus[] result = 
        new SnapshottableDirectoryStatus[list.size()];
    for (int i = 0; i < list.size(); i++) {
      result[i] = PBHelper.convert(list.get(i));
    }
    return result;
  }
}
项目:hadoop-2.6.0-cdh5.4.3    文件:PBHelper.java   
public static SnapshottableDirectoryStatus[] convert(
    SnapshottableDirectoryListingProto sdlp) {
  if (sdlp == null)
    return null;
  List<SnapshottableDirectoryStatusProto> list = sdlp
      .getSnapshottableDirListingList();
  if (list.isEmpty()) {
    return new SnapshottableDirectoryStatus[0];
  } else {
    SnapshottableDirectoryStatus[] result = 
        new SnapshottableDirectoryStatus[list.size()];
    for (int i = 0; i < list.size(); i++) {
      result[i] = PBHelper.convert(list.get(i));
    }
    return result;
  }
}
项目:hadoop-plus    文件:PBHelper.java   
public static SnapshottableDirectoryStatus[] convert(
    SnapshottableDirectoryListingProto sdlp) {
  if (sdlp == null)
    return null;
  List<SnapshottableDirectoryStatusProto> list = sdlp
      .getSnapshottableDirListingList();
  if (list.isEmpty()) {
    return new SnapshottableDirectoryStatus[0];
  } else {
    SnapshottableDirectoryStatus[] result = 
        new SnapshottableDirectoryStatus[list.size()];
    for (int i = 0; i < list.size(); i++) {
      result[i] = PBHelper.convert(list.get(i));
    }
    return result;
  }
}
项目:FlexMap    文件:PBHelper.java   
public static SnapshottableDirectoryStatus[] convert(
    SnapshottableDirectoryListingProto sdlp) {
  if (sdlp == null)
    return null;
  List<SnapshottableDirectoryStatusProto> list = sdlp
      .getSnapshottableDirListingList();
  if (list.isEmpty()) {
    return new SnapshottableDirectoryStatus[0];
  } else {
    SnapshottableDirectoryStatus[] result = 
        new SnapshottableDirectoryStatus[list.size()];
    for (int i = 0; i < list.size(); i++) {
      result[i] = PBHelper.convert(list.get(i));
    }
    return result;
  }
}
项目:hadoop-TCP    文件:PBHelper.java   
public static SnapshottableDirectoryStatus[] convert(
    SnapshottableDirectoryListingProto sdlp) {
  if (sdlp == null)
    return null;
  List<SnapshottableDirectoryStatusProto> list = sdlp
      .getSnapshottableDirListingList();
  if (list.isEmpty()) {
    return new SnapshottableDirectoryStatus[0];
  } else {
    SnapshottableDirectoryStatus[] result = 
        new SnapshottableDirectoryStatus[list.size()];
    for (int i = 0; i < list.size(); i++) {
      result[i] = PBHelper.convert(list.get(i));
    }
    return result;
  }
}
项目:hardfs    文件:PBHelper.java   
public static SnapshottableDirectoryStatus[] convert(
    SnapshottableDirectoryListingProto sdlp) {
  if (sdlp == null)
    return null;
  List<SnapshottableDirectoryStatusProto> list = sdlp
      .getSnapshottableDirListingList();
  if (list.isEmpty()) {
    return new SnapshottableDirectoryStatus[0];
  } else {
    SnapshottableDirectoryStatus[] result = 
        new SnapshottableDirectoryStatus[list.size()];
    for (int i = 0; i < list.size(); i++) {
      result[i] = PBHelper.convert(list.get(i));
    }
    return result;
  }
}
项目:hadoop-on-lustre2    文件:PBHelper.java   
public static SnapshottableDirectoryStatus[] convert(
    SnapshottableDirectoryListingProto sdlp) {
  if (sdlp == null)
    return null;
  List<SnapshottableDirectoryStatusProto> list = sdlp
      .getSnapshottableDirListingList();
  if (list.isEmpty()) {
    return new SnapshottableDirectoryStatus[0];
  } else {
    SnapshottableDirectoryStatus[] result = 
        new SnapshottableDirectoryStatus[list.size()];
    for (int i = 0; i < list.size(); i++) {
      result[i] = PBHelper.convert(list.get(i));
    }
    return result;
  }
}
项目:hadoop    文件:PBHelper.java   
public static SnapshottableDirectoryListingProto convert(
    SnapshottableDirectoryStatus[] status) {
  if (status == null)
    return null;
  SnapshottableDirectoryStatusProto[] protos = 
      new SnapshottableDirectoryStatusProto[status.length];
  for (int i = 0; i < status.length; i++) {
    protos[i] = PBHelper.convert(status[i]);
  }
  List<SnapshottableDirectoryStatusProto> protoList = Arrays.asList(protos);
  return SnapshottableDirectoryListingProto.newBuilder()
      .addAllSnapshottableDirListing(protoList).build();
}
项目:aliyun-oss-hadoop-fs    文件:PBHelperClient.java   
public static SnapshottableDirectoryListingProto convert(
    SnapshottableDirectoryStatus[] status) {
  if (status == null)
    return null;
  SnapshottableDirectoryStatusProto[] protos =
      new SnapshottableDirectoryStatusProto[status.length];
  for (int i = 0; i < status.length; i++) {
    protos[i] = convert(status[i]);
  }
  List<SnapshottableDirectoryStatusProto> protoList = Arrays.asList(protos);
  return SnapshottableDirectoryListingProto.newBuilder()
      .addAllSnapshottableDirListing(protoList).build();
}
项目:big-c    文件:PBHelper.java   
public static SnapshottableDirectoryListingProto convert(
    SnapshottableDirectoryStatus[] status) {
  if (status == null)
    return null;
  SnapshottableDirectoryStatusProto[] protos = 
      new SnapshottableDirectoryStatusProto[status.length];
  for (int i = 0; i < status.length; i++) {
    protos[i] = PBHelper.convert(status[i]);
  }
  List<SnapshottableDirectoryStatusProto> protoList = Arrays.asList(protos);
  return SnapshottableDirectoryListingProto.newBuilder()
      .addAllSnapshottableDirListing(protoList).build();
}
项目:hadoop-2.6.0-cdh5.4.3    文件:PBHelper.java   
public static SnapshottableDirectoryListingProto convert(
    SnapshottableDirectoryStatus[] status) {
  if (status == null)
    return null;
  SnapshottableDirectoryStatusProto[] protos = 
      new SnapshottableDirectoryStatusProto[status.length];
  for (int i = 0; i < status.length; i++) {
    protos[i] = PBHelper.convert(status[i]);
  }
  List<SnapshottableDirectoryStatusProto> protoList = Arrays.asList(protos);
  return SnapshottableDirectoryListingProto.newBuilder()
      .addAllSnapshottableDirListing(protoList).build();
}
项目:hadoop-plus    文件:PBHelper.java   
public static SnapshottableDirectoryListingProto convert(
    SnapshottableDirectoryStatus[] status) {
  if (status == null)
    return null;
  SnapshottableDirectoryStatusProto[] protos = 
      new SnapshottableDirectoryStatusProto[status.length];
  for (int i = 0; i < status.length; i++) {
    protos[i] = PBHelper.convert(status[i]);
  }
  List<SnapshottableDirectoryStatusProto> protoList = Arrays.asList(protos);
  return SnapshottableDirectoryListingProto.newBuilder()
      .addAllSnapshottableDirListing(protoList).build();
}
项目:FlexMap    文件:PBHelper.java   
public static SnapshottableDirectoryListingProto convert(
    SnapshottableDirectoryStatus[] status) {
  if (status == null)
    return null;
  SnapshottableDirectoryStatusProto[] protos = 
      new SnapshottableDirectoryStatusProto[status.length];
  for (int i = 0; i < status.length; i++) {
    protos[i] = PBHelper.convert(status[i]);
  }
  List<SnapshottableDirectoryStatusProto> protoList = Arrays.asList(protos);
  return SnapshottableDirectoryListingProto.newBuilder()
      .addAllSnapshottableDirListing(protoList).build();
}
项目:hadoop-TCP    文件:PBHelper.java   
public static SnapshottableDirectoryListingProto convert(
    SnapshottableDirectoryStatus[] status) {
  if (status == null)
    return null;
  SnapshottableDirectoryStatusProto[] protos = 
      new SnapshottableDirectoryStatusProto[status.length];
  for (int i = 0; i < status.length; i++) {
    protos[i] = PBHelper.convert(status[i]);
  }
  List<SnapshottableDirectoryStatusProto> protoList = Arrays.asList(protos);
  return SnapshottableDirectoryListingProto.newBuilder()
      .addAllSnapshottableDirListing(protoList).build();
}
项目:hardfs    文件:PBHelper.java   
public static SnapshottableDirectoryListingProto convert(
    SnapshottableDirectoryStatus[] status) {
  if (status == null)
    return null;
  SnapshottableDirectoryStatusProto[] protos = 
      new SnapshottableDirectoryStatusProto[status.length];
  for (int i = 0; i < status.length; i++) {
    protos[i] = PBHelper.convert(status[i]);
  }
  List<SnapshottableDirectoryStatusProto> protoList = Arrays.asList(protos);
  return SnapshottableDirectoryListingProto.newBuilder()
      .addAllSnapshottableDirListing(protoList).build();
}
项目:hadoop-on-lustre2    文件:PBHelper.java   
public static SnapshottableDirectoryListingProto convert(
    SnapshottableDirectoryStatus[] status) {
  if (status == null)
    return null;
  SnapshottableDirectoryStatusProto[] protos = 
      new SnapshottableDirectoryStatusProto[status.length];
  for (int i = 0; i < status.length; i++) {
    protos[i] = PBHelper.convert(status[i]);
  }
  List<SnapshottableDirectoryStatusProto> protoList = Arrays.asList(protos);
  return SnapshottableDirectoryListingProto.newBuilder()
      .addAllSnapshottableDirListing(protoList).build();
}