|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.server.assertion.index.AsnBaseIndexAdapter
public class AsnBaseIndexAdapter
Base class for an adapter that handles read/write operations against a Lucene index of assertions.
Constructor Summary | |
---|---|
AsnBaseIndexAdapter()
Default constructor |
Method Summary | |
---|---|
void |
closeReader(IndexReader reader)
Closes an index reader. |
void |
closeSearcher(IndexSearcher searcher)
Closes an index searcher. |
void |
closeWriter(IndexWriter writer)
Closes an index writer. |
void |
configure(AsnIndexReference indexReference)
Configures the adapter from an index configuration reference. |
protected Directory |
getDirectory()
Gets the Lucene Directory assoctated with the index. |
AsnIndexReference |
getIndexReference()
Gets the configuration reference for the index. |
protected NativeFSLockFactory |
getNativeLockFactory()
Gets the native lock factory if it has been configured for use. |
IndexReader |
makeIndexReader()
Makes an index reader. |
IndexWriter |
makeIndexWriter(Analyzer analyzer)
Makes an index writer. |
Analyzer |
newAnalyzer(AsnContext context)
Instantiates a new analyzer. |
void |
optimize()
Optimizes the index. |
void |
setIndexReference(AsnIndexReference indexReference)
Sets the configuration reference for the index. |
void |
touch()
Opens and closes a writer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AsnBaseIndexAdapter()
Method Detail |
---|
public AsnIndexReference getIndexReference()
public void setIndexReference(AsnIndexReference indexReference)
indexReference
- index configuration referencepublic void closeReader(IndexReader reader)
reader
- the reader to closepublic void closeSearcher(IndexSearcher searcher)
searcher
- the searcher to closepublic void closeWriter(IndexWriter writer)
writer
- the writer to closepublic void configure(AsnIndexReference indexReference)
indexReference
- index configuration referenceprotected Directory getDirectory() throws IOException
IOException
- if an I/O exception occursprotected NativeFSLockFactory getNativeLockFactory() throws IOException
IOException
- if an I/O exception occurspublic IndexReader makeIndexReader() throws CorruptIndexException, IOException
CorruptIndexException
- if the index is corrupt
IOException
- if an I/O exception occurspublic IndexWriter makeIndexWriter(Analyzer analyzer) throws CorruptIndexException, LockObtainFailedException, IOException
analyzer
- the analyzer
CorruptIndexException
- if the index is corrupt
LockObtainFailedException
- if a write lock cannot be obtained
IOException
- if an I/O exception occurspublic Analyzer newAnalyzer(AsnContext context)
context
- the assertion operation context
public void optimize() throws CorruptIndexException, LockObtainFailedException, IOException
CorruptIndexException
- if the index is corrupt
LockObtainFailedException
- if a write lock cannot be obtained
IOException
- if an I/O exception occurspublic void touch() throws CorruptIndexException, LockObtainFailedException, IOException
CorruptIndexException
- if the index is corrupt
LockObtainFailedException
- if a write lock cannot be obtained
IOException
- if an I/O exception occurs
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |