|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.omdocjdom.lucene.LuceneMBaseStorage
public class LuceneMBaseStorage
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
log
|
| Method Summary | |
|---|---|
String |
addMassStorageItem(String content)
Writes the stored value and returns a token for it. |
void |
addSmallDocument(org.apache.lucene.document.Document doc)
|
void |
closeWriting()
|
void |
deleteMassStorageItem(String label)
Deletes the indicated element, don't forget to call renewIndexReaders()
after deletions. |
int |
deleteSmallDocument(org.apache.lucene.index.Term term)
Deletes the document from the small-documents and also all mass storage entries whose labels are contained in the fields provided as massStorageFields. |
protected void |
finalize()
|
static LuceneMBaseStorage |
getInstance()
|
static LuceneMBaseStorage |
getInstance(Subconfiguration config,
Set massFieldNames,
org.apache.lucene.analysis.Analyzer analyzer)
|
org.apache.lucene.document.Document |
getSmallDocument(org.apache.lucene.index.Term term)
|
org.apache.lucene.document.Document |
getSmallDocumentAtId(String id)
|
static void |
main(String[] args)
Called to verify the coherence between small and mass indices. |
void |
makeDatabaseFresh()
|
void |
openWriting()
|
void |
optimize()
|
Reader |
readMassStorageItem(String label)
|
String |
readStringMassOfStorageItem(String label)
|
void |
renewIndexReaders()
|
org.apache.lucene.search.Hits |
searchSmallDocument(org.apache.lucene.search.Query q)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.commons.logging.Log log
| Method Detail |
|---|
public static LuceneMBaseStorage getInstance()
public static LuceneMBaseStorage getInstance(Subconfiguration config,
Set massFieldNames,
org.apache.lucene.analysis.Analyzer analyzer)
throws IOException
IOException
public void makeDatabaseFresh()
throws IOException
IOException
public void openWriting()
throws IOException
IOException
public void closeWriting()
throws IOException
IOException
public void optimize()
throws IOException
IOException
public void renewIndexReaders()
throws IOException
IOException
public String addMassStorageItem(String content)
throws IOException
IOException
public String readStringMassOfStorageItem(String label)
throws IOException
IOException
public Reader readMassStorageItem(String label)
throws IOException
IOException
public void deleteMassStorageItem(String label)
throws IOException
renewIndexReaders()
after deletions.
label -
IOException
public void addSmallDocument(org.apache.lucene.document.Document doc)
throws IOException
IOException
public org.apache.lucene.document.Document getSmallDocument(org.apache.lucene.index.Term term)
throws IOException
IOException
public org.apache.lucene.document.Document getSmallDocumentAtId(String id)
throws IOException
IOException
public org.apache.lucene.search.Hits searchSmallDocument(org.apache.lucene.search.Query q)
throws IOException
IOException
public int deleteSmallDocument(org.apache.lucene.index.Term term)
throws IOException
term - the term to search for deletion
IOExceptionprotected void finalize()
finalize in class Object
public static void main(String[] args)
throws Throwable
args - the path to the searchIndices
Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||