@Override public Directory create() { if (lockFactory == null) { lockFactory = makeDefaultLockFactory(); } if (srl == null) { srl = makeDefaultSegmentReadLocker(metadataCache, chunksCache, distLocksCache, indexName, affinitySegmentId); } if (deleteExecutor == null) { deleteExecutor = new WithinThreadExecutor(); } return new DirectoryLucene(metadataCache, chunksCache, distLocksCache, indexName, lockFactory, chunkSize, srl, writeFileListAsync, deleteExecutor, affinitySegmentId); }
@Override public Directory create() { if (lockFactory == null) { lockFactory = makeDefaultLockFactory(); } if (srl == null) { srl = makeDefaultSegmentReadLocker(metadataCache, chunksCache, distLocksCache, indexName, affinitySegmentId); } if (deleteExecutor == null) { deleteExecutor = new WithinThreadExecutor(); } return new DirectoryLucene(metadataCache, chunksCache, distLocksCache, indexName, lockFactory, chunkSize, srl, writeFileListAsync, deleteExecutor, affinitySegmentId); }