jklustor-overlap-0.0.2-20140619012940 (ChemAxon)


com.chemaxon.overlap.io
Class MasterStorages

Object
  extended by com.chemaxon.overlap.io.MasterStorages

public final class MasterStorages
extends Object

Helper method for managing MasterStorages instances.

Author:
Gabor Imre

Nested Class Summary
static interface MasterStorages.MasterStorageBuilder<T>
          Builder class for a master storage.
static class MasterStorages.MoleculeCallbackBuilder
          Molecule callback based builder.
 
Field Summary
static int DEFAULT_IMPORT_PAGESIZE
          Page size to use on import.
static int MAX_QUEUE_SIZE
          Max queue size for import.
 
Method Summary
static MasterStorages.MasterStorageBuilder<String> createStringStoreBuilder()
          Create a String storage builder.
static MasterStorages.MasterStorageBuilder<String> createStringStoreBuilder(int skip)
          Create a String storage builder.
static MasterMoleculeStorage masterMoleculeStorageFromFile(InputStream is, String opts, int count, StandardizerWrapper standardizer, ExecutorService ex, com.chemaxon.calculations.common.SubProgressObserver po, List<? extends MoleculeCallback> mcb)
          Create storage from a strcuture file.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_IMPORT_PAGESIZE

public static final int DEFAULT_IMPORT_PAGESIZE
Page size to use on import.

See Also:
Constant Field Values

MAX_QUEUE_SIZE

public static final int MAX_QUEUE_SIZE
Max queue size for import.

See Also:
Constant Field Values
Method Detail

createStringStoreBuilder

public static MasterStorages.MasterStorageBuilder<String> createStringStoreBuilder(int skip)
Create a String storage builder.

Parameters:
skip - Initial skip count
Returns:
A String storage builder

createStringStoreBuilder

public static MasterStorages.MasterStorageBuilder<String> createStringStoreBuilder()
Create a String storage builder.

Returns:
A String storage builder

masterMoleculeStorageFromFile

public static MasterMoleculeStorage masterMoleculeStorageFromFile(InputStream is,
                                                                  String opts,
                                                                  int count,
                                                                  StandardizerWrapper standardizer,
                                                                  ExecutorService ex,
                                                                  com.chemaxon.calculations.common.SubProgressObserver po,
                                                                  List<? extends MoleculeCallback> mcb)
Create storage from a strcuture file.

This method blocks until completion. Passed stream and progress observer callback is accessed only from the calling thread.

Parameters:
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 input
standardizer - Standardizer to apply on imported structures
ex - ExecutorService to run parsing/converting
po - Observer to track progress. Will be closed by invoking SubProgressObserver.done() upon completion/abortion
mcb - Callbacks to also report molecules or null
Returns:
Created master storage

jklustor-overlap-0.0.2-20140619012940 (ChemAxon)