public class SingleMoleculeArchive extends AbstractMoleculeArchive<SingleMolecule,MarsOMEMetadata,SingleMoleculeArchiveProperties,SingleMoleculeArchiveIndex>
AbstractMoleculeArchive
for default archives used
for routine single molecule time-series datasets composed of
SingleMolecule
molecule records, MarsMetadata
metadata
records, and SingleMoleculeArchiveProperties
archive properties.
For a more extensive explanation of uses and features of molecule archives
see AbstractMoleculeArchive
.
archiveIndex, archiveProperties, jFactory, metadataMap, moleculeMap, name, recordLocks, smileEncoding, source, virtual, win
Constructor and Description |
---|
SingleMoleculeArchive(java.io.File file)
Constructor for loading a SingleMoleculeArchive.
|
SingleMoleculeArchive(MoleculeArchiveSource source)
Constructor for loading a MoleculeArchive from a MoleculeArchiveSource.
|
SingleMoleculeArchive(java.lang.String name)
Creates an empty SingleMoleculeArchive with the given name.
|
SingleMoleculeArchive(java.lang.String name,
java.io.File file)
Constructor for loading a SingleMoleculeArchive.
|
SingleMoleculeArchive(java.lang.String name,
MarsTable table)
Constructor for building a Molecule Archive from a MarsTable.
|
SingleMoleculeArchive(java.lang.String name,
MarsTable table,
java.lang.String indexColumnName)
Constructor for building a molecule archive from a MarsTable.
|
SingleMoleculeArchive(java.net.URI uri)
Constructor for loading a MoleculeArchive.
|
Modifier and Type | Method and Description |
---|---|
SingleMoleculeArchiveIndex |
createIndex()
Create empty MoleculeArchiveIndex.
|
SingleMoleculeArchiveIndex |
createIndex(com.fasterxml.jackson.core.JsonParser jParser)
Create MoleculeArchiveIndex using JsonParser stream.
|
MarsOMEMetadata |
createMetadata(com.fasterxml.jackson.core.JsonParser jParser)
Create MarsOMEMetadata record using JsonParser stream.
|
MarsOMEMetadata |
createMetadata(java.lang.String metaUID)
Create empty MarsOMEMetadata record with the metaUID specified.
|
SingleMolecule |
createMolecule()
Create empty SingleMolecule record.
|
SingleMolecule |
createMolecule(com.fasterxml.jackson.core.JsonParser jParser)
Create SingleMolecule record using the JsonParser stream given.
|
SingleMolecule |
createMolecule(java.lang.String UID)
Create empty SingleMolecule record with the UID specified.
|
SingleMolecule |
createMolecule(java.lang.String UID,
MarsTable table)
Create SingleMolecule record using the UID and
MarsTable specified. |
SingleMoleculeArchiveProperties |
createProperties()
Create empty SingleMoleculeArchiveProperties record.
|
SingleMoleculeArchiveProperties |
createProperties(com.fasterxml.jackson.core.JsonParser jParser)
Create SingleMoleculeArchiveProperties record using JsonParser stream.
|
addMoleculeTags, contains, containsMetadata, createIOMaps, deleteMetadatasWithTag, deleteMoleculesWithTag, detectEncoding, get, get, getChannel, getComments, getImage, getMetadata, getMetadata, getMetadataTagList, getMetadataTagSet, getMetadataUIDforMolecule, getMetadataUIDs, getMoleculeBatch, getMoleculeUIDs, getName, getNumberOfMetadatas, getNumberOfMolecules, getSource, getTagList, getTagSet, getWindow, isVirtual, load, loadVirtualStore, log, logln, metadata, metadataHasTag, moleculeHasNoTags, moleculeHasTag, moleculeHasTags, molecules, moleculeTags, parallelMetadata, parallelMolecules, properties, put, putMetadata, rebuildIndexes, rebuildIndexes, remove, remove, removeMetadata, removeMetadata, save, saveAs, saveAs, saveAsJson, saveAsJson, saveAsJsonVirtualStore, saveAsJsonVirtualStore, saveAsJsonVirtualStore, saveAsJsonVirtualStore, saveAsVirtualStore, saveAsVirtualStore, saveAsVirtualStore, saveAsVirtualStore, saveMetadataToSource, saveMoleculeToSource, setComments, setName, setWindow, toString
dumpJSON, fromJSON, getJsonGenerator, getJsonParser, setJsonField, setShowWarnings, toJSON
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
dumpJSON, fromJSON, getJsonGenerator, getJsonParser, setJsonField, setShowWarnings, toJSON
public SingleMoleculeArchive(java.lang.String name)
name
- Name of the empty SingleMoleculeArchive to create.public SingleMoleculeArchive(java.io.File file) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException
MoleculeArchives should typically be opened using the
ImportVirtualStoreCommand
, which automatically detect the type and
open the archive accordingly.
file
- The file or directory to load the archive from.com.fasterxml.jackson.core.JsonParseException
- if there is a problem parsing the file provided.java.io.IOException
- if there is a problem with the file location.public SingleMoleculeArchive(java.net.URI uri) throws java.io.IOException
uri
- The URI to load the archive from.java.io.IOException
- if there is a problem with the file location.public SingleMoleculeArchive(MoleculeArchiveSource source) throws java.io.IOException
source
- The MoleculeArchiveSource to load the archive from.java.io.IOException
- if there is a problem with the file location.public SingleMoleculeArchive(java.lang.String name, java.io.File file) throws com.fasterxml.jackson.core.JsonParseException, java.io.IOException
MoleculeArchives should typically be opened using the
ImportVirtualStoreCommand
, which automatically detect the type and
open the archive accordingly.
name
- The name of the archive.file
- The file or directory to load the archive from.com.fasterxml.jackson.core.JsonParseException
- if there is a parsing exception.java.io.IOException
- if there is a problem with the file provided.public SingleMoleculeArchive(java.lang.String name, MarsTable table)
name
- The name of the archive.table
- A MarsTable to build the archive from.public SingleMoleculeArchive(java.lang.String name, MarsTable table, java.lang.String indexColumnName)
name
- The name of the archive.table
- A MarsTable to build the archive from.indexColumnName
- Molecule index column.public SingleMoleculeArchiveProperties createProperties()
createProperties
in interface MoleculeArchive<SingleMolecule,MarsOMEMetadata,SingleMoleculeArchiveProperties,SingleMoleculeArchiveIndex>
createProperties
in class AbstractMoleculeArchive<SingleMolecule,MarsOMEMetadata,SingleMoleculeArchiveProperties,SingleMoleculeArchiveIndex>
public SingleMoleculeArchiveProperties createProperties(com.fasterxml.jackson.core.JsonParser jParser) throws java.io.IOException
createProperties
in interface MoleculeArchive<SingleMolecule,MarsOMEMetadata,SingleMoleculeArchiveProperties,SingleMoleculeArchiveIndex>
createProperties
in class AbstractMoleculeArchive<SingleMolecule,MarsOMEMetadata,SingleMoleculeArchiveProperties,SingleMoleculeArchiveIndex>
jParser
- JsonParser to use to create archive properties.java.io.IOException
- Thrown if unable to read Json from JsonParser stream.public MarsOMEMetadata createMetadata(com.fasterxml.jackson.core.JsonParser jParser) throws java.io.IOException
createMetadata
in interface MoleculeArchive<SingleMolecule,MarsOMEMetadata,SingleMoleculeArchiveProperties,SingleMoleculeArchiveIndex>
createMetadata
in class AbstractMoleculeArchive<SingleMolecule,MarsOMEMetadata,SingleMoleculeArchiveProperties,SingleMoleculeArchiveIndex>
jParser
- JsonParser to use to create metadata.java.io.IOException
- Thrown if unable to read Json from JsonParser stream.public MarsOMEMetadata createMetadata(java.lang.String metaUID)
createMetadata
in interface MoleculeArchive<SingleMolecule,MarsOMEMetadata,SingleMoleculeArchiveProperties,SingleMoleculeArchiveIndex>
createMetadata
in class AbstractMoleculeArchive<SingleMolecule,MarsOMEMetadata,SingleMoleculeArchiveProperties,SingleMoleculeArchiveIndex>
metaUID
- The metaUID to use during creation of the empty MarsMetadata
record.public SingleMolecule createMolecule()
createMolecule
in interface MoleculeArchive<SingleMolecule,MarsOMEMetadata,SingleMoleculeArchiveProperties,SingleMoleculeArchiveIndex>
createMolecule
in class AbstractMoleculeArchive<SingleMolecule,MarsOMEMetadata,SingleMoleculeArchiveProperties,SingleMoleculeArchiveIndex>
public SingleMolecule createMolecule(com.fasterxml.jackson.core.JsonParser jParser) throws java.io.IOException
createMolecule
in interface MoleculeArchive<SingleMolecule,MarsOMEMetadata,SingleMoleculeArchiveProperties,SingleMoleculeArchiveIndex>
createMolecule
in class AbstractMoleculeArchive<SingleMolecule,MarsOMEMetadata,SingleMoleculeArchiveProperties,SingleMoleculeArchiveIndex>
jParser
- JsonParser to use to create the molecule.java.io.IOException
- Thrown if unable to read Json from JsonParser stream.public SingleMolecule createMolecule(java.lang.String UID)
createMolecule
in interface MoleculeArchive<SingleMolecule,MarsOMEMetadata,SingleMoleculeArchiveProperties,SingleMoleculeArchiveIndex>
createMolecule
in class AbstractMoleculeArchive<SingleMolecule,MarsOMEMetadata,SingleMoleculeArchiveProperties,SingleMoleculeArchiveIndex>
UID
- The UID to use during creation.public SingleMolecule createMolecule(java.lang.String UID, MarsTable table)
MarsTable
specified.createMolecule
in interface MoleculeArchive<SingleMolecule,MarsOMEMetadata,SingleMoleculeArchiveProperties,SingleMoleculeArchiveIndex>
createMolecule
in class AbstractMoleculeArchive<SingleMolecule,MarsOMEMetadata,SingleMoleculeArchiveProperties,SingleMoleculeArchiveIndex>
UID
- The UID to use during molecule creation.table
- The MarsTable set as the DataTable during creation.public SingleMoleculeArchiveIndex createIndex()
AbstractMoleculeArchive
createIndex
in interface MoleculeArchive<SingleMolecule,MarsOMEMetadata,SingleMoleculeArchiveProperties,SingleMoleculeArchiveIndex>
createIndex
in class AbstractMoleculeArchive<SingleMolecule,MarsOMEMetadata,SingleMoleculeArchiveProperties,SingleMoleculeArchiveIndex>
public SingleMoleculeArchiveIndex createIndex(com.fasterxml.jackson.core.JsonParser jParser) throws java.io.IOException
AbstractMoleculeArchive
createIndex
in interface MoleculeArchive<SingleMolecule,MarsOMEMetadata,SingleMoleculeArchiveProperties,SingleMoleculeArchiveIndex>
createIndex
in class AbstractMoleculeArchive<SingleMolecule,MarsOMEMetadata,SingleMoleculeArchiveProperties,SingleMoleculeArchiveIndex>
jParser
- JsonParser to use to create the MoleculeArchiveIndex.java.io.IOException
- Thrown if unable to read Json from JsonParser stream.