public class DefaultMoleculeArchive extends AbstractMoleculeArchive<DefaultMolecule,MarsOMEMetadata,DefaultMoleculeArchiveProperties,DefaultMoleculeArchiveIndex>
AbstractMoleculeArchive
.archiveIndex, archiveProperties, jFactory, metadataMap, moleculeMap, name, recordLocks, smileEncoding, source, virtual, win
Constructor and Description |
---|
DefaultMoleculeArchive(java.io.File file)
Constructor for loading a MoleculeArchive.
|
DefaultMoleculeArchive(MoleculeArchiveSource source)
Constructor for loading a MoleculeArchive from a MoleculeArchiveSource.
|
DefaultMoleculeArchive(java.lang.String name)
Creates an empty DefaultMoleculeArchive with the given name.
|
DefaultMoleculeArchive(java.lang.String name,
java.io.File file)
Constructor for loading a MoleculeArchive.
|
DefaultMoleculeArchive(java.lang.String name,
MarsTable table)
Constructor for building a molecule archive from a MarsTable.
|
DefaultMoleculeArchive(java.net.URI uri)
Constructor for loading a MoleculeArchive.
|
Modifier and Type | Method and Description |
---|---|
DefaultMoleculeArchiveIndex |
createIndex()
Create empty MoleculeArchiveIndex.
|
DefaultMoleculeArchiveIndex |
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 DefaultMarsImageMetadata record with the metaUID specified.
|
DefaultMolecule |
createMolecule()
Create empty DefaultMolecule record.
|
DefaultMolecule |
createMolecule(com.fasterxml.jackson.core.JsonParser jParser)
Create DefaultMolecule record using the JsonParser stream given.
|
DefaultMolecule |
createMolecule(java.lang.String UID)
Create empty DefaultMolecule record with the UID specified.
|
DefaultMolecule |
createMolecule(java.lang.String UID,
MarsTable table)
Create DefaultMolecule record using the UID and
MarsTable
specified. |
DefaultMoleculeArchiveProperties |
createProperties()
Create empty DefaultMoleculeArchiveProperties record.
|
DefaultMoleculeArchiveProperties |
createProperties(com.fasterxml.jackson.core.JsonParser jParser)
Create DefaultMoleculeArchiveProperties 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 DefaultMoleculeArchive(java.lang.String name)
name
- Name of the empty DefaultMoleculeArchive to create.public DefaultMoleculeArchive(java.io.File file) throws java.io.IOException
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.java.io.IOException
- if there is a problem with the file location.public DefaultMoleculeArchive(java.lang.String name, java.io.File file) throws 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.java.io.IOException
- if there is a problem with the file provided.public DefaultMoleculeArchive(java.lang.String name, MarsTable table)
name
- The name of the archive.table
- A MarsTable to build the archive from.public DefaultMoleculeArchive(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 DefaultMoleculeArchive(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 DefaultMoleculeArchiveProperties createProperties()
createProperties
in interface MoleculeArchive<DefaultMolecule,MarsOMEMetadata,DefaultMoleculeArchiveProperties,DefaultMoleculeArchiveIndex>
createProperties
in class AbstractMoleculeArchive<DefaultMolecule,MarsOMEMetadata,DefaultMoleculeArchiveProperties,DefaultMoleculeArchiveIndex>
public DefaultMoleculeArchiveProperties createProperties(com.fasterxml.jackson.core.JsonParser jParser) throws java.io.IOException
createProperties
in interface MoleculeArchive<DefaultMolecule,MarsOMEMetadata,DefaultMoleculeArchiveProperties,DefaultMoleculeArchiveIndex>
createProperties
in class AbstractMoleculeArchive<DefaultMolecule,MarsOMEMetadata,DefaultMoleculeArchiveProperties,DefaultMoleculeArchiveIndex>
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<DefaultMolecule,MarsOMEMetadata,DefaultMoleculeArchiveProperties,DefaultMoleculeArchiveIndex>
createMetadata
in class AbstractMoleculeArchive<DefaultMolecule,MarsOMEMetadata,DefaultMoleculeArchiveProperties,DefaultMoleculeArchiveIndex>
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<DefaultMolecule,MarsOMEMetadata,DefaultMoleculeArchiveProperties,DefaultMoleculeArchiveIndex>
createMetadata
in class AbstractMoleculeArchive<DefaultMolecule,MarsOMEMetadata,DefaultMoleculeArchiveProperties,DefaultMoleculeArchiveIndex>
metaUID
- The metaUID to use during creation of the empty MarsMetadata
record.public DefaultMolecule createMolecule()
createMolecule
in interface MoleculeArchive<DefaultMolecule,MarsOMEMetadata,DefaultMoleculeArchiveProperties,DefaultMoleculeArchiveIndex>
createMolecule
in class AbstractMoleculeArchive<DefaultMolecule,MarsOMEMetadata,DefaultMoleculeArchiveProperties,DefaultMoleculeArchiveIndex>
public DefaultMolecule createMolecule(com.fasterxml.jackson.core.JsonParser jParser) throws java.io.IOException
createMolecule
in interface MoleculeArchive<DefaultMolecule,MarsOMEMetadata,DefaultMoleculeArchiveProperties,DefaultMoleculeArchiveIndex>
createMolecule
in class AbstractMoleculeArchive<DefaultMolecule,MarsOMEMetadata,DefaultMoleculeArchiveProperties,DefaultMoleculeArchiveIndex>
jParser
- JsonParser to use to create the molecule.java.io.IOException
- Thrown if unable to read Json from JsonParser stream.public DefaultMolecule createMolecule(java.lang.String UID)
createMolecule
in interface MoleculeArchive<DefaultMolecule,MarsOMEMetadata,DefaultMoleculeArchiveProperties,DefaultMoleculeArchiveIndex>
createMolecule
in class AbstractMoleculeArchive<DefaultMolecule,MarsOMEMetadata,DefaultMoleculeArchiveProperties,DefaultMoleculeArchiveIndex>
UID
- The UID to use during creation.public DefaultMolecule createMolecule(java.lang.String UID, MarsTable table)
MarsTable
specified.createMolecule
in interface MoleculeArchive<DefaultMolecule,MarsOMEMetadata,DefaultMoleculeArchiveProperties,DefaultMoleculeArchiveIndex>
createMolecule
in class AbstractMoleculeArchive<DefaultMolecule,MarsOMEMetadata,DefaultMoleculeArchiveProperties,DefaultMoleculeArchiveIndex>
UID
- The UID to use during molecule creation.table
- The MarsTable set as the DataTable during creation.public DefaultMoleculeArchiveIndex createIndex()
AbstractMoleculeArchive
createIndex
in interface MoleculeArchive<DefaultMolecule,MarsOMEMetadata,DefaultMoleculeArchiveProperties,DefaultMoleculeArchiveIndex>
createIndex
in class AbstractMoleculeArchive<DefaultMolecule,MarsOMEMetadata,DefaultMoleculeArchiveProperties,DefaultMoleculeArchiveIndex>
public DefaultMoleculeArchiveIndex createIndex(com.fasterxml.jackson.core.JsonParser jParser) throws java.io.IOException
AbstractMoleculeArchive
createIndex
in interface MoleculeArchive<DefaultMolecule,MarsOMEMetadata,DefaultMoleculeArchiveProperties,DefaultMoleculeArchiveIndex>
createIndex
in class AbstractMoleculeArchive<DefaultMolecule,MarsOMEMetadata,DefaultMoleculeArchiveProperties,DefaultMoleculeArchiveIndex>
jParser
- JsonParser to use to create the MoleculeArchiveIndex.java.io.IOException
- Thrown if unable to read Json from JsonParser stream.