|
Esri Geoportal Server 1.2.2
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.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(org.apache.lucene.index.IndexReader reader)
Closes an index reader. |
void |
closeSearcher(org.apache.lucene.search.IndexSearcher searcher)
Closes an index searcher. |
void |
closeWriter(org.apache.lucene.index.IndexWriter writer)
Closes an index writer. |
void |
configure(AsnIndexReference indexReference)
Configures the adapter from an index configuration reference. |
protected org.apache.lucene.store.Directory |
getDirectory()
Gets the Lucene Directory assoctated with the index. |
AsnIndexReference |
getIndexReference()
Gets the configuration reference for the index. |
protected org.apache.lucene.store.NativeFSLockFactory |
getNativeLockFactory()
Gets the native lock factory if it has been configured for use. |
org.apache.lucene.index.IndexReader |
makeIndexReader()
Makes an index reader. |
org.apache.lucene.index.IndexWriter |
makeIndexWriter(org.apache.lucene.analysis.Analyzer analyzer)
Makes an index writer. |
org.apache.lucene.analysis.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(org.apache.lucene.index.IndexReader reader)
reader
- the reader to closepublic void closeSearcher(org.apache.lucene.search.IndexSearcher searcher)
searcher
- the searcher to closepublic void closeWriter(org.apache.lucene.index.IndexWriter writer)
writer
- the writer to closepublic void configure(AsnIndexReference indexReference)
indexReference
- index configuration referenceprotected org.apache.lucene.store.Directory getDirectory() throws IOException
IOException
- if an I/O exception occursprotected org.apache.lucene.store.NativeFSLockFactory getNativeLockFactory() throws IOException
IOException
- if an I/O exception occurspublic org.apache.lucene.index.IndexReader makeIndexReader() throws org.apache.lucene.index.CorruptIndexException, IOException
org.apache.lucene.index.CorruptIndexException
- if the index is corrupt
IOException
- if an I/O exception occurspublic org.apache.lucene.index.IndexWriter makeIndexWriter(org.apache.lucene.analysis.Analyzer analyzer) throws org.apache.lucene.index.CorruptIndexException, org.apache.lucene.store.LockObtainFailedException, IOException
analyzer
- the analyzer
org.apache.lucene.index.CorruptIndexException
- if the index is corrupt
org.apache.lucene.store.LockObtainFailedException
- if a write lock cannot be obtained
IOException
- if an I/O exception occurspublic org.apache.lucene.analysis.Analyzer newAnalyzer(AsnContext context)
context
- the assertion operation context
public void optimize() throws org.apache.lucene.index.CorruptIndexException, org.apache.lucene.store.LockObtainFailedException, IOException
org.apache.lucene.index.CorruptIndexException
- if the index is corrupt
org.apache.lucene.store.LockObtainFailedException
- if a write lock cannot be obtained
IOException
- if an I/O exception occurspublic void touch() throws org.apache.lucene.index.CorruptIndexException, org.apache.lucene.store.LockObtainFailedException, IOException
org.apache.lucene.index.CorruptIndexException
- if the index is corrupt
org.apache.lucene.store.LockObtainFailedException
- if a write lock cannot be obtained
IOException
- if an I/O exception occurs
|
Esri Geoportal Server 1.2.2
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |