Beispiel #1
0
 @Inject
 public MockRamDirectoryService(
     ShardId shardId, Settings indexSettings, ByteBufferCache byteBufferCache) {
   super(shardId, indexSettings);
   helper = new MockDirectoryHelper(shardId, indexSettings, logger);
   delegateService = helper.randomRamDirecoryService(byteBufferCache);
 }
Beispiel #2
0
 @Override
 public Directory[] build() throws IOException {
   return helper.wrapAllInplace(delegateService.build());
 }