Java 类org.apache.lucene.util.ByteBlockPool.Allocator 实例源码

项目:search    文件:MemoryIndexTest.java   
private Allocator randomByteBlockAllocator() {
  if (random().nextBoolean()) {
    return new RecyclingByteBlockAllocator();
  } else {
    return new ByteBlockPool.DirectAllocator();
  }
}
项目:NYBC    文件:MemoryIndexTest.java   
private Allocator randomByteBlockAllocator() {
  if (random().nextBoolean()) {
    return new RecyclingByteBlockAllocator();
  } else {
    return new ByteBlockPool.DirectAllocator();
  }
}
项目:Maskana-Gestor-de-Conocimiento    文件:MemoryIndexTest.java   
private Allocator randomByteBlockAllocator() {
  if (random().nextBoolean()) {
    return new RecyclingByteBlockAllocator();
  } else {
    return new ByteBlockPool.DirectAllocator();
  }
}