org.activemath.omdocjdom.slumb
Class SlumbStorage
java.lang.Object
org.activemath.omdocjdom.slumb.SlumbStorage
- All Implemented Interfaces:
- SlumbConstants
public class SlumbStorage
- extends Object
- implements SlumbConstants
|
Field Summary |
protected static org.apache.commons.logging.Log |
log
|
| Fields inherited from interface org.activemath.omdocjdom.slumb.SlumbConstants |
COLL_NAMES_book_list, COLL_NAMES_collection_info, COLL_NAMES_collection_info_sole_text, COLL_NAMES_collection_metadata, COLL_NAMES_course_generation_menu, COLL_NAMES_reserved_names, FIELD_attributes, FIELD_colAndRelPath, FIELD_collection, FIELD_columnNumber, FIELD_commonname, FIELD_containedIds, FIELD_dcmetadata, FIELD_elt_absPath, FIELD_elt_relpath, FIELD_file_absPath, FIELD_file_relpath, FIELD_fileNameFromId, FIELD_fmp, FIELD_id, FIELD_importStrings, FIELD_lastModification, FIELD_lineNumber, FIELD_metadata, FIELD_name, FIELD_relSourceId, FIELD_relTargetId, FIELD_textualContent, FIELD_theoryId, FIELD_theoryName, FIELD_type, FIELD_xmlContent, FIELDVALUE_type_fileObject, FIELDVALUE_type_itemObject, FIELDVALUE_type_theoryObject, modifDateFormat |
log
protected static org.apache.commons.logging.Log log
getInstance
public static SlumbStorage getInstance()
getInstance
public static SlumbStorage getInstance(Subconfiguration config,
boolean readOnly)
throws IOException
- Throws:
IOException
openWriting
public void openWriting()
throws IOException
- Throws:
IOException
closeWriting
public void closeWriting()
throws IOException
- Throws:
IOException
renewIndexReaders
public void renewIndexReaders()
throws IOException
- Throws:
IOException
addSmallDocument
public void addSmallDocument(org.apache.lucene.document.Document doc)
throws IOException
- Throws:
IOException
getSmallDocuments
public org.apache.lucene.search.Hits getSmallDocuments(org.apache.lucene.index.Term term)
throws IOException
- Throws:
IOException
getSmallDocuments
public org.apache.lucene.search.Hits getSmallDocuments(org.apache.lucene.search.Query query)
throws IOException
- Throws:
IOException
getSmallDocuments
public org.apache.lucene.search.Hits getSmallDocuments(org.apache.lucene.index.Term termA,
org.apache.lucene.index.Term termB)
throws IOException
- Throws:
IOException
getSmallDocuments
public org.apache.lucene.search.Hits getSmallDocuments(org.apache.lucene.index.Term[] terms)
throws IOException
- Throws:
IOException
getSmallDocument
public org.apache.lucene.document.Document getSmallDocument(org.apache.lucene.index.Term term)
throws IOException
- Throws:
IOException
getSmallDocument
public org.apache.lucene.document.Document getSmallDocument(org.apache.lucene.index.Term termA,
org.apache.lucene.index.Term termB)
throws IOException
- Throws:
IOException
getSmallDocument
public org.apache.lucene.document.Document getSmallDocument(org.apache.lucene.search.Query q)
throws IOException
- Throws:
IOException
getSmallDocumentAtId
public org.apache.lucene.document.Document getSmallDocumentAtId(String id)
throws IOException
- Throws:
IOException
getMassStorage
public FileStringStorage getMassStorage()
getOMDocFile
public OMDocFile getOMDocFile(File path,
String collectionId,
SlumbIndex index)
prepareForDeletion
public void prepareForDeletion(int docNum)
commitDeletions
public void commitDeletions()
throws IOException
- Throws:
IOException
deleteSmallDocument
public void deleteSmallDocument(int docNum)
- deletes this document with care for related masss storage
getRelationsWithSource
public SlumbRelation.RelList getRelationsWithSource(String source)
throws IOException
- Throws:
IOException
deleteRelationsWithSource
public void deleteRelationsWithSource(String source)
throws IOException
- Throws:
IOException
getRelationsWithTarget
public SlumbRelation.RelList getRelationsWithTarget(String target)
throws IOException
- Throws:
IOException
deleteRelationsWithTarget
public void deleteRelationsWithTarget(String target)
throws IOException
- Throws:
IOException
deleteRelationsWithColAndRelPath
public void deleteRelationsWithColAndRelPath(String colAndRelPath)
throws IOException
- Throws:
IOException
addRelation
public void addRelation(SlumbRelation relation)
throws IOException
- Throws:
IOException
finalize
protected void finalize()
- Overrides:
finalize in class Object