Java 类org.apache.hadoop.hbase.util.IterableUtils 实例源码

项目:ditb    文件:KeyValueTestUtil.java   
public static ByteBuffer toByteBufferAndRewind(final Iterable<? extends KeyValue> kvs,
    boolean includeMemstoreTS) {
  int totalBytes = KeyValueUtil.totalLengthWithMvccVersion(kvs, includeMemstoreTS);
  ByteBuffer bb = ByteBuffer.allocate(totalBytes);
  for (KeyValue kv : IterableUtils.nullSafe(kvs)) {
    KeyValueUtil.appendToByteBuffer(bb, kv, includeMemstoreTS);
  }
  bb.rewind();
  return bb;
}
项目:ditb    文件:KeyValueUtil.java   
public static int totalLengthWithMvccVersion(final Iterable<? extends KeyValue> kvs,
    final boolean includeMvccVersion) {
  int length = 0;
  for (KeyValue kv : IterableUtils.nullSafe(kvs)) {
    length += lengthWithMvccVersion(kv, includeMvccVersion);
  }
  return length;
}
项目:pbase    文件:KeyValueTestUtil.java   
public static ByteBuffer toByteBufferAndRewind(final Iterable<? extends KeyValue> kvs,
    boolean includeMemstoreTS) {
  int totalBytes = KeyValueUtil.totalLengthWithMvccVersion(kvs, includeMemstoreTS);
  ByteBuffer bb = ByteBuffer.allocate(totalBytes);
  for (KeyValue kv : IterableUtils.nullSafe(kvs)) {
    KeyValueUtil.appendToByteBuffer(bb, kv, includeMemstoreTS);
  }
  bb.rewind();
  return bb;
}
项目:pbase    文件:KeyValueUtil.java   
public static int totalLengthWithMvccVersion(final Iterable<? extends KeyValue> kvs,
    final boolean includeMvccVersion) {
  int length = 0;
  for (KeyValue kv : IterableUtils.nullSafe(kvs)) {
    length += lengthWithMvccVersion(kv, includeMvccVersion);
  }
  return length;
}
项目:HIndex    文件:KeyValueTestUtil.java   
public static ByteBuffer toByteBufferAndRewind(final Iterable<? extends KeyValue> kvs,
    boolean includeMemstoreTS) {
  int totalBytes = KeyValueUtil.totalLengthWithMvccVersion(kvs, includeMemstoreTS);
  ByteBuffer bb = ByteBuffer.allocate(totalBytes);
  for (KeyValue kv : IterableUtils.nullSafe(kvs)) {
    KeyValueUtil.appendToByteBuffer(bb, kv, includeMemstoreTS);
  }
  bb.rewind();
  return bb;
}
项目:HIndex    文件:KeyValueUtil.java   
public static int totalLengthWithMvccVersion(final Iterable<? extends KeyValue> kvs,
    final boolean includeMvccVersion) {
  int length = 0;
  for (KeyValue kv : IterableUtils.nullSafe(kvs)) {
    length += lengthWithMvccVersion(kv, includeMvccVersion);
  }
  return length;
}
项目:PyroDB    文件:KeyValueTestUtil.java   
public static ByteBuffer toByteBufferAndRewind(final Iterable<? extends KeyValue> kvs,
    boolean includeMemstoreTS) {
  int totalBytes = KeyValueUtil.totalLengthWithMvccVersion(kvs, includeMemstoreTS);
  ByteBuffer bb = ByteBuffer.allocate(totalBytes);
  for (KeyValue kv : IterableUtils.nullSafe(kvs)) {
    KeyValueUtil.appendToByteBuffer(bb, kv, includeMemstoreTS);
  }
  bb.rewind();
  return bb;
}
项目:PyroDB    文件:KeyValueUtil.java   
public static int totalLengthWithMvccVersion(final Iterable<? extends KeyValue> kvs,
    final boolean includeMvccVersion) {
  int length = 0;
  for (KeyValue kv : IterableUtils.nullSafe(kvs)) {
    length += lengthWithMvccVersion(kv, includeMvccVersion);
  }
  return length;
}
项目:c5    文件:KeyValueTestUtil.java   
public static ByteBuffer toByteBufferAndRewind(final Iterable<? extends KeyValue> kvs,
    boolean includeMemstoreTS) {
  int totalBytes = KeyValueUtil.totalLengthWithMvccVersion(kvs, includeMemstoreTS);
  ByteBuffer bb = ByteBuffer.allocate(totalBytes);
  for (KeyValue kv : IterableUtils.nullSafe(kvs)) {
    KeyValueUtil.appendToByteBuffer(bb, kv, includeMemstoreTS);
  }
  bb.rewind();
  return bb;
}
项目:c5    文件:KeyValueUtil.java   
public static int totalLengthWithMvccVersion(final Iterable<? extends KeyValue> kvs,
    final boolean includeMvccVersion) {
  int length = 0;
  for (KeyValue kv : IterableUtils.nullSafe(kvs)) {
    length += lengthWithMvccVersion(kv, includeMvccVersion);
  }
  return length;
}
项目:DominoHBase    文件:KeyValueTestUtil.java   
public static ByteBuffer toByteBufferAndRewind(final Iterable<? extends KeyValue> kvs,
    boolean includeMemstoreTS) {
  int totalBytes = KeyValueTool.totalLengthWithMvccVersion(kvs, includeMemstoreTS);
  ByteBuffer bb = ByteBuffer.allocate(totalBytes);
  for (KeyValue kv : IterableUtils.nullSafe(kvs)) {
    KeyValueTool.appendToByteBuffer(bb, kv, includeMemstoreTS);
  }
  bb.rewind();
  return bb;
}
项目:DominoHBase    文件:KeyValueTool.java   
public static int totalLengthWithMvccVersion(final Iterable<? extends KeyValue> kvs,
    final boolean includeMvccVersion) {
  int length = 0;
  for (KeyValue kv : IterableUtils.nullSafe(kvs)) {
    length += lengthWithMvccVersion(kv, includeMvccVersion);
  }
  return length;
}
项目:ditb    文件:ByteRangeTreeSet.java   
public ByteRangeTreeSet(List<ByteRange> rawByteArrays) {
  this();//needed to initialize the TreeSet
  for(ByteRange in : IterableUtils.nullSafe(rawByteArrays)){
    add(in);
  }
}
项目:ditb    文件:ByteRangeHashSet.java   
public ByteRangeHashSet(List<ByteRange> rawByteArrays) {
  for (ByteRange in : IterableUtils.nullSafe(rawByteArrays)) {
    add(in);
  }
}
项目:pbase    文件:ByteRangeTreeSet.java   
public ByteRangeTreeSet(List<ByteRange> rawByteArrays) {
  this();//needed to initialize the TreeSet
  for(ByteRange in : IterableUtils.nullSafe(rawByteArrays)){
    add(in);
  }
}
项目:pbase    文件:ByteRangeHashSet.java   
public ByteRangeHashSet(List<ByteRange> rawByteArrays) {
  for (ByteRange in : IterableUtils.nullSafe(rawByteArrays)) {
    add(in);
  }
}
项目:HIndex    文件:ByteRangeTreeSet.java   
public ByteRangeTreeSet(List<ByteRange> rawByteArrays) {
  this();//needed to initialize the TreeSet
  for(ByteRange in : IterableUtils.nullSafe(rawByteArrays)){
    add(in);
  }
}
项目:HIndex    文件:ByteRangeHashSet.java   
public ByteRangeHashSet(List<ByteRange> rawByteArrays) {
  for (ByteRange in : IterableUtils.nullSafe(rawByteArrays)) {
    add(in);
  }
}
项目:PyroDB    文件:ByteRangeTreeSet.java   
public ByteRangeTreeSet(List<ByteRange> rawByteArrays) {
  this();//needed to initialize the TreeSet
  for(ByteRange in : IterableUtils.nullSafe(rawByteArrays)){
    add(in);
  }
}
项目:PyroDB    文件:ByteRangeHashSet.java   
public ByteRangeHashSet(List<ByteRange> rawByteArrays) {
  for (ByteRange in : IterableUtils.nullSafe(rawByteArrays)) {
    add(in);
  }
}
项目:c5    文件:ByteRangeTreeSet.java   
public ByteRangeTreeSet(List<ByteRange> rawByteArrays) {
  this();//needed to initialize the TreeSet
  for(ByteRange in : IterableUtils.nullSafe(rawByteArrays)){
    add(in);
  }
}
项目:c5    文件:ByteRangeHashSet.java   
public ByteRangeHashSet(List<ByteRange> rawByteArrays) {
  for (ByteRange in : IterableUtils.nullSafe(rawByteArrays)) {
    add(in);
  }
}