|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.infinispan.lucene.impl.DirectoryBuilderImpl
public class DirectoryBuilderImpl
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
DirectoryBuilderImpl(Cache<?,?> metadataCache,
Cache<?,?> chunksCache,
Cache<?,?> distLocksCache,
String indexName)
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_BUFFER_SIZE
| Constructor Detail |
|---|
public DirectoryBuilderImpl(Cache<?,?> metadataCache,
Cache<?,?> chunksCache,
Cache<?,?> distLocksCache,
String indexName)
| Method Detail |
|---|
public org.apache.lucene.store.Directory create()
BuildContext
create in interface BuildContextDirectorypublic BuildContext chunkSize(int bytes)
BuildContext
chunkSize in interface BuildContextbytes - segments are fragmented in chunkSize bytes; larger values are more efficient for searching but less for
distribution and network replication
public BuildContext overrideSegmentReadLocker(SegmentReadLocker srl)
BuildContext
overrideSegmentReadLocker in interface BuildContextsrl - the new read locking strategy for fragmented segments
org.infinispan.lucene.readlockspublic BuildContext overrideWriteLocker(org.apache.lucene.store.LockFactory lockFactory)
BuildContext
overrideWriteLocker in interface BuildContextlockFactory - the LockFactory to be used by IndexWriters.
org.infinispan.lucene.locking
|
--> | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||