public final class MasterStorages extends Object
MasterStorages
instances.Modifier and Type | Class and Description |
---|---|
static interface |
MasterStorages.MasterStorageBuilder<T>
Builder class for a master storage.
|
static class |
MasterStorages.MoleculeCallbackBuilder
Molecule callback based builder.
|
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_IMPORT_PAGESIZE
Page size to use on import.
|
static int |
MAX_QUEUE_SIZE
Max queue size for import.
|
public static final int DEFAULT_IMPORT_PAGESIZE
public static final int MAX_QUEUE_SIZE
public static MasterStorages.MasterStorageBuilder<String> createStringStoreBuilder(int skip)
skip
- Initial skip countpublic static MasterStorages.MasterStorageBuilder<String> createStringStoreBuilder()
public static <T extends Serializable> MasterStorages.MasterStorageBuilder<T> createArrayStoreBuilder(Class<T> elements)
T
- Element typeelements
- Element typepublic static MasterStorages.MasterStorageBuilder<Integer> createIntStoreBuilder()
public static MasterStorages.MasterStorageBuilder<Long> createLongStoreBuilder()
public static MasterStorages.MasterStorageBuilder<Double> createDoubleStoreBuilder()
public static MasterStorages.MasterStorageBuilder<String> createCompactStringStoreBuilder()
public static MasterStringStorage createIndexToStringStorage(int size, String prefix, boolean pad)
size
- Virtual size of storageprefix
- Prefix for returned stringspad
- pad numbers with '0' characterspublic static MasterMoleculeStorage allAbsentMasterMoleculeStorage(int size)
size
- Virtual sizepublic static MasterMoleculeStorage masterMoleculeStorageFromFile(InputStream is, String opts, int count, StandardizerWrapper standardizer, ExecutorService ex, SubProgressObserver po, List<? extends MoleculeCallback> mcb)
This method blocks until completion. Passed stream and progress observer callback is accessed only from the calling thread.
is
- InputStream to read from. Will not be closed upon completion/abort.opts
- Options to pass to underlying importer. Use empty string when no import option is used.count
- Max number of structures to inputstandardizer
- Standardizer to apply on imported structuresex
- ExecutorService to run parsing/convertingpo
- Observer to track progress. Will be closed by invoking ProgressObserver.done()
upon
completion/abortionmcb
- Callbacks to also report molecules or null