|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.dir.master.index.JDBCManager
public class JDBCManager
A specialisation of to DefaultTerm and DefaultTermStats of an IndexManager
based on a JDBC-compliant database implementations of an inverted index.
| Constructor Summary | |
|---|---|
JDBCManager()
Creates an uninitialised instance. |
|
| Method Summary | |
|---|---|
void |
addTerm(java.lang.String collectionID,
DefaultTerm 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,DefaultTermStats> |
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<DefaultTerm> |
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JDBCManager()
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public void createIndex(IndexCreationParameters params)
throws java.lang.Exception
createIndex in interface IndexManager<DefaultTerm,DefaultTermStats>params - the creation parameters.
java.lang.Exception - if the index could not be created.
public void addTerm(java.lang.String collectionID,
DefaultTerm term)
throws java.lang.Exception
addTerm in interface IndexManager<DefaultTerm,DefaultTermStats>collectionID - the collection identifier.term - the terms.
java.lang.Exception - if the term could not be added.
public java.util.List<DefaultTerm> getTerms(java.lang.String collectionID)
throws java.lang.Exception
getTerms in interface IndexManager<DefaultTerm,DefaultTermStats>java.lang.Exception - if the terms could not be retrieved.
public void removeTerms(java.lang.String collectionID)
throws java.lang.Exception
removeTerms in interface IndexManager<DefaultTerm,DefaultTermStats>java.lang.Exception - if the terms could not be removed.
public java.util.Map<java.lang.String,DefaultTermStats> getPostings(java.lang.String termName,
java.util.Collection<java.lang.String> collectionIDs)
throws java.lang.Exception
getPostings in interface IndexManager<DefaultTerm,DefaultTermStats>java.lang.Exception - if the statistics could not be retrieved.
public void deleteIndex()
throws java.lang.Exception
deleteIndex in interface IndexManager<DefaultTerm,DefaultTermStats>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 | |||||||||