Package org.rcsb.strucmotif.io
Interface StateRepository
- All Known Implementing Classes:
StateRepositoryImpl
public interface StateRepository
The state of the application consists of two lists of structure identifiers:
- known: entries that have been processed (might become invalid if e.g. alpha carbon trace)
- dirty: all identifiers that could cause a corrupted state (if update fails during inverted index writing) - useful to recover
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteDirty(Collection<String> removals) Remove from 'dirty' collection.voiddeleteKnown(Collection<String> removals) Remove from 'known' collection.voidinsertDirty(Collection<String> additions) Insert into 'dirty' collection.voidinsertKnown(Collection<StructureInformation> additions) Insert into 'known' collection.selectAssemblyMap(String structureIdentifier) Provides assembly information.The set of currently 'dirty' ids.Returns all registered revisions.
-
Method Details
-
selectAssemblyMap
Provides assembly information.- Parameters:
structureIdentifier- the structure of interest- Returns:
- a map with operator expressions as key and a collection of all corresponding assembly ids as value
-
selectKnown
Collection<StructureInformation> selectKnown()Returns all registered revisions.- Returns:
- a collection of ids and their corresponding revision
-
selectDirty
Collection<String> selectDirty()The set of currently 'dirty' ids. Will be populated when update starts and emptied upon successful completion. Problematic if not the empty set after an update.- Returns:
- a collection of ids
-
insertKnown
Insert into 'known' collection.- Parameters:
additions- a collection of ids
-
insertDirty
Insert into 'dirty' collection.- Parameters:
additions- a collection of ids
-
deleteKnown
Remove from 'known' collection.- Parameters:
removals- a collection of ids
-
deleteDirty
Remove from 'dirty' collection.- Parameters:
removals- a collection of ids
-