|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.descriptors.MDReader
chemaxon.descriptors.MDDBReader
public class MDDBReader
Class for reading MolecularDescriptors from a database. Capable of generating MolecularDescriptors on-the-fly from molecules if required.
| Field Summary |
|---|
| Fields inherited from class chemaxon.descriptors.MDReader |
|---|
cloneResult, firstId, generateDescriptor, generateId, id, idTagName, lastReadMolecule, mdSet, takeTags |
| Constructor Summary | |
|---|---|
MDDBReader(ConnectionHandler ch,
java.lang.String strucTableName,
MDSet mdSet,
java.lang.String sqlCondition)
Deprecated. since 2.3 Use MDDBReader(java.lang.String, chemaxon.util.ConnectionHandler, chemaxon.descriptors.MDSet, java.lang.String)
instead. |
|
MDDBReader(ConnectionHandler ch,
java.lang.String strucTableName,
java.lang.String[] mdNames,
java.lang.String sqlCondition)
Deprecated. since 2.3 Use MDDBReader(java.lang.String, chemaxon.util.ConnectionHandler, java.lang.String[], java.lang.String)
intead. |
|
MDDBReader(java.lang.String strucTableName,
ConnectionHandler ch,
MDSet mdSet,
java.lang.String query)
Constructs a new MDDBReader object. |
|
MDDBReader(java.lang.String strucTableName,
ConnectionHandler ch,
java.lang.String[] mdNames,
java.lang.String query)
Constructs a new MDDBReader object. |
|
MDDBReader(java.lang.String strucTableName,
ConnectionHandler ch,
java.lang.String[] mdNames,
java.lang.String query,
int[] filterIDList,
boolean indexTable)
Constructs a new MDDBReader object. |
|
| Method Summary | |
|---|---|
void |
close()
Closes down the descriptor stream. |
int |
getLastID()
Gets the cd_id that belongs to the last processed descriptor from the structure table |
MDSet |
getMDSet()
Gets the molecular descriptor set. |
Molecule |
getMolecule()
Gets the molecule that belongs to the last processed descriptor from the structure table |
MDSet |
next()
Fetches the next element form the stream or returns null
when there are no more accessible data. |
void |
reset()
Initializes the MolecularDescriptor stream. |
| Methods inherited from class chemaxon.descriptors.MDReader |
|---|
createMDSetComponent, getCloneResult, setCloneResult, setFirstId, setGenerateId, setIdTagName, setTakeTag |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated
public MDDBReader(ConnectionHandler ch,
java.lang.String strucTableName,
MDSet mdSet,
java.lang.String sqlCondition)
MDDBReader(java.lang.String, chemaxon.util.ConnectionHandler, chemaxon.descriptors.MDSet, java.lang.String)
instead.
ch - a ConnectionHandler with an open connection to the databasestrucTableName - name of the structure tablemdSet - the contains the appropriate descriptorssqlCondition - a condition to be used in an SQL where clause
(e.g: "cd_id>1000"). If null, then all rows are retreived.
public MDDBReader(java.lang.String strucTableName,
ConnectionHandler ch,
MDSet mdSet,
java.lang.String query)
ch - a ConnectionHandler with an open connection to the databasestrucTableName - name of the structure tablemdSet - the contains the appropriate descriptorsquery - SQL query for filtering. It should contain the cd_id values.
Example "select cd_id from mystructures where cd_id>1000").
If null, then all rows are retreived.
@Deprecated
public MDDBReader(ConnectionHandler ch,
java.lang.String strucTableName,
java.lang.String[] mdNames,
java.lang.String sqlCondition)
MDDBReader(java.lang.String, chemaxon.util.ConnectionHandler, java.lang.String[], java.lang.String)
intead.
ch - a ConnectionHandler with an open connection to the databasestrucTableName - name of the structure tablemdNames - the names of the descriptors stored in the databasesqlCondition - a condition to be used in an SQL where clause
(e.g: "cd_id>1000").If null or empty string
all rows are retreived.
public MDDBReader(java.lang.String strucTableName,
ConnectionHandler ch,
java.lang.String[] mdNames,
java.lang.String query)
ch - a ConnectionHandler with an open connection to the databasestrucTableName - name of the structure tablemdNames - the names of the descriptors stored in the databasequery - SQL query for filtering. It should contain the cd_id values.
Example "select cd_id from mystructures where cd_id>1000").
If null, then all rows are retreived.
public MDDBReader(java.lang.String strucTableName,
ConnectionHandler ch,
java.lang.String[] mdNames,
java.lang.String query,
int[] filterIDList,
boolean indexTable)
ch - a ConnectionHandler with an open connection to the databasestrucTableName - name of the structure tablemdNames - the names of the descriptors stored in the databasequery - SQL query for filtering. It should contain the cd_id values.
Example "select cd_id from mystructures where cd_id>1000").
If null, then all rows are retreived.filterIDList - a cd_id list to filter with.
No filtering if null.| Method Detail |
|---|
public MDSet getMDSet()
getMDSet in class MDReaderMDSet object
public void reset()
throws MDReaderException
MolecularDescriptor stream. If the stream
is not empty the consequent call to next() returns the first
element.
reset in class MDReaderMDReaderException - when failed to reset the reader
public MDSet next()
throws MDReaderException
null
when there are no more accessible data.
Also initializes the stream, if necessary.
next in class MDReadernull if couldn't read descriptor or
no more descriptors to read
MDReaderException - when failed reading the next descriptor set
public Molecule getMolecule()
throws MDReaderException
getMolecule in class MDReadernull if not found
MDReaderException
public int getLastID()
throws MDReaderException
MDReaderException
public void close()
throws MDReaderException
close in class MDReaderMDReaderException - when failed to close the input stream
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||