|
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 com.esri.gpt.server.assertion.index.AsnIndexAdapter
public class AsnIndexAdapter
Handles read/write operations against a Lucene index of assertions.
Constructor Summary | |
---|---|
AsnIndexAdapter()
Default constructor |
Method Summary | |
---|---|
long |
count(AsnContext context,
IndexSearcher searcher,
String valueField,
String subject,
String predicate,
String value)
Returns a hit count for a subject, predicate and value combination. |
void |
delete(AsnContext context,
String assertionId)
Deletes an assertion. |
void |
index(AsnContext context,
Assertion assertion)
Indexes an assertion. |
Assertion |
loadAssertionById(AsnContext context,
boolean mustExist)
Loads an assertion based upon the subject id of the active operation. |
Assertion |
loadPreviousUserAssertion(AsnContext context)
Loads the assertion previously cast for the active subject, predicate and user. |
Assertion |
loadPreviousUserAssertion(AsnContext context,
IndexSearcher searcher)
Loads the assertion previously cast for the active subject, predicate and user. |
Methods inherited from class com.esri.gpt.server.assertion.index.AsnBaseIndexAdapter |
---|
closeReader, closeSearcher, closeWriter, configure, getDirectory, getIndexReference, getNativeLockFactory, makeIndexReader, makeIndexWriter, newAnalyzer, optimize, setIndexReference, touch |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AsnIndexAdapter()
Method Detail |
---|
public long count(AsnContext context, IndexSearcher searcher, String valueField, String subject, String predicate, String value) throws CorruptIndexException, IOException
context
- the assertion operation contextsearcher
- the index searchervalueField
- the value field namesubject
- the subjectpredicate
- the predicatevalue
- the value
CorruptIndexException
- if the index is corrupt
IOException
- if an I/O exception occurspublic void delete(AsnContext context, String assertionId) throws CorruptIndexException, LockObtainFailedException, IOException
context
- the assertion operation contextassertionId
- the assertion ID to delete
CorruptIndexException
- if the index is corrupt
LockObtainFailedException
- if a write lock cannot be obtained
IOException
- if an I/O exception occurspublic void index(AsnContext context, Assertion assertion) throws CorruptIndexException, LockObtainFailedException, IOException
context
- the assertion operation contextassertion
- the assertion to index
CorruptIndexException
- if the index is corrupt
LockObtainFailedException
- if a write lock cannot be obtained
IOException
- if an I/O exception occurspublic Assertion loadAssertionById(AsnContext context, boolean mustExist) throws CorruptIndexException, IOException, AsnInvalidOperationException
context
- the assertion operation contextmustExist
- true
true if the assertion must exist
CorruptIndexException
- if the index is corrupt
IOException
- if an I/O exception occurs
AsnInvalidOperationException
- if mustExist and the assertion was not foundpublic Assertion loadPreviousUserAssertion(AsnContext context) throws Exception
context
- the assertion operation context
Exception
- if an exception occurspublic Assertion loadPreviousUserAssertion(AsnContext context, IndexSearcher searcher) throws Exception
context
- the assertion operation contextsearcher
- the index searcher
Exception
- if an exception occurs
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |