public interface BuildContext
Modifier and Type | Method and Description |
---|---|
BuildContext |
affinityLocationIntoSegment(int segmentId)
When set to a positive integer, this will force a specific data distribution:
the hashing function will resolve all keys used to store the various entries
for the resulting index to be owned by the specified segment id.
|
BuildContext |
chunkSize(int bytes)
Sets the chunkSize option for the Directory being created.
|
org.apache.lucene.store.Directory |
create()
Creates a Directory instance
|
BuildContext |
deleteOperationsExecutor(Executor executor)
Provides an Executor to handle delete operations in a background thread
|
BuildContext |
overrideSegmentReadLocker(SegmentReadLocker srl)
Overrides the default SegmentReadLocker.
|
BuildContext |
overrideWriteLocker(org.apache.lucene.store.LockFactory lf)
Overrides the IndexWriter LockFactory
|
BuildContext |
writeFileListAsynchronously(boolean writeFileListAsync)
When set to true, the list of files of the Directory is propagated to other nodes
asynchronously.
|
org.apache.lucene.store.Directory create()
Directory
BuildContext chunkSize(int bytes)
bytes
- segments are fragmented in chunkSize bytes; larger values are more efficient for searching but less for
distribution and network replicationBuildContext overrideSegmentReadLocker(SegmentReadLocker srl)
srl
- the new read locking strategy for fragmented segmentsorg.infinispan.lucene.readlocks
BuildContext overrideWriteLocker(org.apache.lucene.store.LockFactory lf)
lf
- the LockFactory to be used by IndexWriters.org.infinispan.lucene.locking
BuildContext writeFileListAsynchronously(boolean writeFileListAsync)
writeFileListAsync
- BuildContext deleteOperationsExecutor(Executor executor)
executor
- BuildContext affinityLocationIntoSegment(int segmentId)
segmentId
- Copyright © 2020 JBoss, a division of Red Hat. All rights reserved.