|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.derquinse.common.base.NotInstantiable
net.conquiris.search.ReaderSuppliers
public final class ReaderSuppliers
Reader suppliers support class.
| Method Summary | |
|---|---|
static ReaderSupplier |
directory(Directory directory)
Returns an unmanaged reader supplier using a directory. |
static ReaderSupplier |
empty()
Returns a non-reopenable reader supplier using an empty index. |
static ReaderSupplier |
managed(Directory directory)
Returns a managed reader supplier based on a directory with no hold time. |
static ReaderSupplier |
managed(Directory directory,
long holdTime)
Returns a managed reader supplier based on a directory. |
static ReaderSupplier |
managed(IndexWriter writer)
Returns an unmanaged near-real-time reader supplier using the provided index writer. |
static ReaderSupplier |
managed(IndexWriter writer,
long holdTime)
Returns an unmanaged near-real-time reader supplier using the provided index writer. |
static ManagedReaderSupplier |
managed(ReaderSupplier supplier)
Returns a managed reader supplier based on another one with no hold time. |
static ManagedReaderSupplier |
managed(ReaderSupplier supplier,
long holdTime)
Returns a managed reader supplier based on another one. |
static ReaderSupplier |
writer(IndexWriter writer)
Returns an unmanaged near-real-time reader supplier using the provided index writer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ReaderSupplier empty()
public static ReaderSupplier directory(Directory directory)
directory - Directory to use.public static ReaderSupplier writer(IndexWriter writer)
writer - Index writer.
public static ManagedReaderSupplier managed(ReaderSupplier supplier,
long holdTime)
supplier - Source reader supplier.holdTime - Reader hold time (ms). If negative, zero will be used.public static ManagedReaderSupplier managed(ReaderSupplier supplier)
supplier - Source reader supplier.
public static ReaderSupplier managed(Directory directory,
long holdTime)
directory - Directory to use.holdTime - Reader hold time (ms). If negative, zero will be used.public static ReaderSupplier managed(Directory directory)
directory - Directory to use.
public static ReaderSupplier managed(IndexWriter writer,
long holdTime)
holdTime - Reader hold time (ms). If negative, zero will be used.writer - Index writer.public static ReaderSupplier managed(IndexWriter writer)
writer - Index writer.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||