public interface BuildContext
Modifier and Type | Method and Description |
---|---|
BuildContext |
chunkSize(int bytes)
Sets the chunkSize option for the Directory being created.
|
org.apache.lucene.store.Directory |
create()
Creates a Directory instance
|
BuildContext |
overrideSegmentReadLocker(SegmentReadLocker srl)
Overrides the default SegmentReadLocker.
|
BuildContext |
overrideWriteLocker(org.apache.lucene.store.LockFactory lf)
Overrides the IndexWriter LockFactory
|
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
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.