public class ObjectArchive extends AbstractMoleculeArchive<MartianObject,MarsOMEMetadata,ObjectArchiveProperties,ObjectArchiveIndex>
archiveIndex, archiveProperties, jFactory, metadataMap, moleculeMap, name, recordLocks, smileEncoding, source, virtual, win
Constructor and Description |
---|
ObjectArchive(java.io.File file) |
ObjectArchive(MoleculeArchiveSource source)
Constructor for loading a MoleculeArchive from a MoleculeArchiveSource.
|
ObjectArchive(java.lang.String name) |
ObjectArchive(java.lang.String name,
java.io.File file) |
ObjectArchive(java.lang.String name,
MarsTable table) |
ObjectArchive(java.net.URI uri)
Constructor for loading a MoleculeArchive.
|
Modifier and Type | Method and Description |
---|---|
ObjectArchiveIndex |
createIndex()
Create empty MoleculeArchiveIndex.
|
ObjectArchiveIndex |
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 MarsMetadata record with the metaUID specified.
|
MartianObject |
createMolecule()
Create empty Molecule record.
|
MartianObject |
createMolecule(com.fasterxml.jackson.core.JsonParser jParser)
Create Molecule record using the JsonParser stream given.
|
MartianObject |
createMolecule(java.lang.String UID)
Create empty Molecule record with the UID specified.
|
MartianObject |
createMolecule(java.lang.String UID,
MarsTable table)
Create Molecule record using the UID and
MarsTable specified. |
ObjectArchiveProperties |
createProperties()
Create empty MoleculeArchiveProperties record.
|
ObjectArchiveProperties |
createProperties(com.fasterxml.jackson.core.JsonParser jParser)
Create MoleculeArchiveProperties record using JsonParser stream.
|
java.util.stream.Stream<MartianObject> |
objects() |
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 ObjectArchive(java.lang.String name)
public ObjectArchive(java.io.File file) throws java.io.IOException
java.io.IOException
public ObjectArchive(java.lang.String name, MarsTable table)
public ObjectArchive(java.lang.String name, java.io.File file) throws java.io.IOException
java.io.IOException
public ObjectArchive(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 ObjectArchive(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 java.util.stream.Stream<MartianObject> objects()
public ObjectArchiveProperties createProperties()
AbstractMoleculeArchive
createProperties
in interface MoleculeArchive<MartianObject,MarsOMEMetadata,ObjectArchiveProperties,ObjectArchiveIndex>
createProperties
in class AbstractMoleculeArchive<MartianObject,MarsOMEMetadata,ObjectArchiveProperties,ObjectArchiveIndex>
public ObjectArchiveProperties createProperties(com.fasterxml.jackson.core.JsonParser jParser) throws java.io.IOException
AbstractMoleculeArchive
createProperties
in interface MoleculeArchive<MartianObject,MarsOMEMetadata,ObjectArchiveProperties,ObjectArchiveIndex>
createProperties
in class AbstractMoleculeArchive<MartianObject,MarsOMEMetadata,ObjectArchiveProperties,ObjectArchiveIndex>
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<MartianObject,MarsOMEMetadata,ObjectArchiveProperties,ObjectArchiveIndex>
createMetadata
in class AbstractMoleculeArchive<MartianObject,MarsOMEMetadata,ObjectArchiveProperties,ObjectArchiveIndex>
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)
AbstractMoleculeArchive
createMetadata
in interface MoleculeArchive<MartianObject,MarsOMEMetadata,ObjectArchiveProperties,ObjectArchiveIndex>
createMetadata
in class AbstractMoleculeArchive<MartianObject,MarsOMEMetadata,ObjectArchiveProperties,ObjectArchiveIndex>
metaUID
- The metaUID to use during creation of the empty MarsMetadata
record.public MartianObject createMolecule()
AbstractMoleculeArchive
createMolecule
in interface MoleculeArchive<MartianObject,MarsOMEMetadata,ObjectArchiveProperties,ObjectArchiveIndex>
createMolecule
in class AbstractMoleculeArchive<MartianObject,MarsOMEMetadata,ObjectArchiveProperties,ObjectArchiveIndex>
public MartianObject createMolecule(com.fasterxml.jackson.core.JsonParser jParser) throws java.io.IOException
AbstractMoleculeArchive
createMolecule
in interface MoleculeArchive<MartianObject,MarsOMEMetadata,ObjectArchiveProperties,ObjectArchiveIndex>
createMolecule
in class AbstractMoleculeArchive<MartianObject,MarsOMEMetadata,ObjectArchiveProperties,ObjectArchiveIndex>
jParser
- JsonParser to use to create the molecule.java.io.IOException
- Thrown if unable to read Json from JsonParser stream.public MartianObject createMolecule(java.lang.String UID)
AbstractMoleculeArchive
createMolecule
in interface MoleculeArchive<MartianObject,MarsOMEMetadata,ObjectArchiveProperties,ObjectArchiveIndex>
createMolecule
in class AbstractMoleculeArchive<MartianObject,MarsOMEMetadata,ObjectArchiveProperties,ObjectArchiveIndex>
UID
- The UID to use during creation.public MartianObject createMolecule(java.lang.String UID, MarsTable table)
AbstractMoleculeArchive
MarsTable
specified.createMolecule
in interface MoleculeArchive<MartianObject,MarsOMEMetadata,ObjectArchiveProperties,ObjectArchiveIndex>
createMolecule
in class AbstractMoleculeArchive<MartianObject,MarsOMEMetadata,ObjectArchiveProperties,ObjectArchiveIndex>
UID
- The UID to use during molecule creation.table
- The MarsTable set as the DataTable during creation.public ObjectArchiveIndex createIndex()
AbstractMoleculeArchive
createIndex
in interface MoleculeArchive<MartianObject,MarsOMEMetadata,ObjectArchiveProperties,ObjectArchiveIndex>
createIndex
in class AbstractMoleculeArchive<MartianObject,MarsOMEMetadata,ObjectArchiveProperties,ObjectArchiveIndex>
public ObjectArchiveIndex createIndex(com.fasterxml.jackson.core.JsonParser jParser) throws java.io.IOException
AbstractMoleculeArchive
createIndex
in interface MoleculeArchive<MartianObject,MarsOMEMetadata,ObjectArchiveProperties,ObjectArchiveIndex>
createIndex
in class AbstractMoleculeArchive<MartianObject,MarsOMEMetadata,ObjectArchiveProperties,ObjectArchiveIndex>
jParser
- JsonParser to use to create the MoleculeArchiveIndex.java.io.IOException
- Thrown if unable to read Json from JsonParser stream.