public abstract class AbstractMoleculeArchiveIndex<M extends Molecule,I extends MarsMetadata> extends AbstractJsonConvertibleRecord implements MoleculeArchiveIndex<M,I>
Constructor and Description |
---|
AbstractMoleculeArchiveIndex() |
AbstractMoleculeArchiveIndex(com.fasterxml.jackson.core.JsonParser jParser) |
Modifier and Type | Method and Description |
---|---|
void |
addMetadata(I metadata) |
void |
addMolecule(M molecule) |
boolean |
containsMetadataUID(java.lang.String metadataUID) |
boolean |
containsMoleculeUID(java.lang.String UID) |
protected void |
createIOMaps()
Must be implemented in subclasses to define how fields, objects, arrays
should be saved based on the Jackson streaming API.
|
java.lang.String |
getMetadataUIDforMolecule(java.lang.String UID) |
java.util.concurrent.ConcurrentSkipListSet<java.lang.String> |
getMetadataUIDSet() |
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
getMetadataUIDtoTagListMap() |
java.util.concurrent.ConcurrentSkipListSet<java.lang.String> |
getMoleculeUIDSet() |
java.util.Map<java.lang.String,java.lang.Integer> |
getMoleculeUIDtoChannelMap() |
java.util.Map<java.lang.String,java.lang.Integer> |
getMoleculeUIDtoImageMap() |
java.util.Map<java.lang.String,java.lang.String> |
getMoleculeUIDtoMetadataUIDMap() |
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
getMoleculeUIDtoTagListMap() |
void |
removeMetadata(I metadata) |
void |
removeMetadata(java.lang.String metadataUID) |
void |
removeMolecule(Molecule molecule) |
void |
removeMolecule(java.lang.String UID) |
dumpJSON, fromJSON, getJsonGenerator, getJsonParser, setJsonField, setShowWarnings, toJSON
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dumpJSON, fromJSON, getJsonGenerator, getJsonParser, setJsonField, setShowWarnings, toJSON
public AbstractMoleculeArchiveIndex()
public AbstractMoleculeArchiveIndex(com.fasterxml.jackson.core.JsonParser jParser) throws java.io.IOException
java.io.IOException
protected void createIOMaps()
AbstractJsonConvertibleRecord
createIOMaps
in class AbstractJsonConvertibleRecord
public void addMolecule(M molecule)
addMolecule
in interface MoleculeArchiveIndex<M extends Molecule,I extends MarsMetadata>
public void removeMolecule(Molecule molecule)
removeMolecule
in interface MoleculeArchiveIndex<M extends Molecule,I extends MarsMetadata>
public void removeMolecule(java.lang.String UID)
removeMolecule
in interface MoleculeArchiveIndex<M extends Molecule,I extends MarsMetadata>
public void addMetadata(I metadata)
addMetadata
in interface MoleculeArchiveIndex<M extends Molecule,I extends MarsMetadata>
public void removeMetadata(I metadata)
removeMetadata
in interface MoleculeArchiveIndex<M extends Molecule,I extends MarsMetadata>
public void removeMetadata(java.lang.String metadataUID)
removeMetadata
in interface MoleculeArchiveIndex<M extends Molecule,I extends MarsMetadata>
public boolean containsMoleculeUID(java.lang.String UID)
containsMoleculeUID
in interface MoleculeArchiveIndex<M extends Molecule,I extends MarsMetadata>
public boolean containsMetadataUID(java.lang.String metadataUID)
containsMetadataUID
in interface MoleculeArchiveIndex<M extends Molecule,I extends MarsMetadata>
public java.util.concurrent.ConcurrentSkipListSet<java.lang.String> getMoleculeUIDSet()
getMoleculeUIDSet
in interface MoleculeArchiveIndex<M extends Molecule,I extends MarsMetadata>
public java.util.concurrent.ConcurrentSkipListSet<java.lang.String> getMetadataUIDSet()
getMetadataUIDSet
in interface MoleculeArchiveIndex<M extends Molecule,I extends MarsMetadata>
public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getMetadataUIDtoTagListMap()
getMetadataUIDtoTagListMap
in interface MoleculeArchiveIndex<M extends Molecule,I extends MarsMetadata>
public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getMoleculeUIDtoTagListMap()
getMoleculeUIDtoTagListMap
in interface MoleculeArchiveIndex<M extends Molecule,I extends MarsMetadata>
public java.util.Map<java.lang.String,java.lang.Integer> getMoleculeUIDtoImageMap()
getMoleculeUIDtoImageMap
in interface MoleculeArchiveIndex<M extends Molecule,I extends MarsMetadata>
public java.util.Map<java.lang.String,java.lang.Integer> getMoleculeUIDtoChannelMap()
getMoleculeUIDtoChannelMap
in interface MoleculeArchiveIndex<M extends Molecule,I extends MarsMetadata>
public java.lang.String getMetadataUIDforMolecule(java.lang.String UID)
getMetadataUIDforMolecule
in interface MoleculeArchiveIndex<M extends Molecule,I extends MarsMetadata>
public java.util.Map<java.lang.String,java.lang.String> getMoleculeUIDtoMetadataUIDMap()
getMoleculeUIDtoMetadataUIDMap
in interface MoleculeArchiveIndex<M extends Molecule,I extends MarsMetadata>