public class DirectoryBuilderImpl extends Object implements BuildContext
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_BUFFER_SIZE
Used as default chunk size: each Lucene index segment is splitted into smaller parts having a default size in bytes as
defined here
|
| Constructor and Description |
|---|
DirectoryBuilderImpl(Cache<?,?> metadataCache,
Cache<?,?> chunksCache,
Cache<?,?> distLocksCache,
String indexName) |
| 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 lockFactory)
Overrides the IndexWriter LockFactory
|
public static final int DEFAULT_BUFFER_SIZE
public org.apache.lucene.store.Directory create()
BuildContextcreate in interface BuildContextDirectorypublic BuildContext chunkSize(int bytes)
BuildContextchunkSize in interface BuildContextbytes - segments are fragmented in chunkSize bytes; larger values are more efficient for searching but less for
distribution and network replicationpublic BuildContext overrideSegmentReadLocker(SegmentReadLocker srl)
BuildContextoverrideSegmentReadLocker in interface BuildContextsrl - the new read locking strategy for fragmented segmentsorg.infinispan.lucene.readlockspublic BuildContext overrideWriteLocker(org.apache.lucene.store.LockFactory lockFactory)
BuildContextoverrideWriteLocker in interface BuildContextlockFactory - the LockFactory to be used by IndexWriters.org.infinispan.lucene.lockingCopyright © 2013 JBoss, a division of Red Hat. All rights reserved.