|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
TERM
- the type of an index term.TERMSTATS
- the type of the statistics of an index term.public interface IndexManager<TERM extends Term<TERMSTATS>,TERMSTATS extends TermStats>
Defines the behaviour of an inverted index of the terms which occur in one or
more collections.
IndexManager
is parametric with respect to the subtype T
of Term
s and the subtype TS
of TermsStats
which
annotate the Term
.
Method Summary | |
---|---|
void |
addTerm(java.lang.String collectionID,
TERM term)
Adds a term from a collection into the index. |
void |
createIndex(IndexCreationParameters params)
Creates the index. |
void |
deleteIndex()
Deletes the index. |
java.util.Map<java.lang.String,TERMSTATS> |
getPostings(java.lang.String termName,
java.util.Collection<java.lang.String> collectionIDs)
Retrieves all statistics of a term wich occurs in one or more collections. |
java.util.List<TERM> |
getTerms(java.lang.String CollectionID)
Retrieves all the terms in a given collection from the index. |
void |
removeTerms(java.lang.String CollectionID)
Removes all terms in a given collection from the index. |
Method Detail |
---|
void createIndex(IndexCreationParameters params) throws java.lang.Exception
params
- the creation parameters.
java.lang.Exception
- if the index could not be created.void addTerm(java.lang.String collectionID, TERM term) throws java.lang.Exception
collectionID
- the collection identifier.term
- the terms.
java.lang.Exception
- if the term could not be added.java.util.List<TERM> getTerms(java.lang.String CollectionID) throws java.lang.Exception
collectionID
- the collection identifier.
java.lang.Exception
- if the terms could not be retrieved.void removeTerms(java.lang.String CollectionID) throws java.lang.Exception
collectionID
- collection identifier.
java.lang.Exception
- if the terms could not be removed.java.util.Map<java.lang.String,TERMSTATS> getPostings(java.lang.String termName, java.util.Collection<java.lang.String> collectionIDs) throws java.lang.Exception
the
- term name.
java.lang.Exception
- if the statistics could not be retrieved.void deleteIndex() throws java.lang.Exception
java.lang.Exception
- if the index could not be deleted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |