@PublicAPI public class StructureTableOptions extends java.lang.Object implements TableTypeConstants
FP_DEFAULT_BITS_PER_PATTERN, FP_DEFAULT_LENGTH_IN_INTS, FP_DEFAULT_PATTERN_LENGTH, MYSQL_DEFAULT_TABLE_TYPE, MYSQL_FORCE_INNO_DB, MYSQL_FORCE_MYISAM, TABLE_TYPE_ANY_STRUCTURES, TABLE_TYPE_DEFAULT, TABLE_TYPE_EXPLANATIONS, TABLE_TYPE_IS_NOT_SUPPORTED, TABLE_TYPE_MARKUSH_LIBRARIES, TABLE_TYPE_MOLECULES, TABLE_TYPE_NAMES, TABLE_TYPE_QUERY_STRUCTURES, TABLE_TYPE_REACTIONS
Constructor and Description |
---|
StructureTableOptions(java.lang.String name)
Creates structure table options with the specified table name and default table type (
TableTypeConstants.TABLE_TYPE_DEFAULT ). |
StructureTableOptions(java.lang.String name,
int tableType)
Creates structure table options with the specified name and table type.
|
Modifier and Type | Method and Description |
---|---|
chemaxon.jchem.base.storage.cache.CacheUpdaterType |
getCacheUpdaterType()
Gets the method to update cache.
|
java.util.Map<java.lang.String,java.lang.String> |
getChemTermColsConfig()
Gets a map having as keys the names of columns which are assigned a value (during structure import and update).
|
java.lang.String |
getExtraColumnDefinitions()
Gets the definitions of additional columns.
|
int |
getFpNumberOfEdges()
Gets he maximum pattern length.
|
int |
getFpNumberOfInts()
Gets the length of the chemical hashed fingerprint.
|
int |
getFpNumberOfOnes()
Gets the number of bits set for patterns.
|
int |
getMysqlTableType()
Gets the table engine for MySql.
|
java.lang.String |
getName()
Gets the table name.
|
java.lang.String |
getStandardizerConfig()
Gets the standardization configuration string.
|
StrucFPConfig |
getStructuralKeyConfig()
Gets the structural key configuration.
|
int |
getStructureColumnType()
Gets the type of the
cd_structure column. |
int |
getTableType()
Gets the table name.
|
chemaxon.sss.search.options.TautomerTransformationMode |
getTautomerEqualityMode() |
boolean |
isAbsoluteStereo()
Gets whether the structures should be treated as absolute stereo during database search.
|
boolean |
isDuplicateFiltering()
Gets the duplicate filtering option.
|
boolean |
isTautomerDuplicateChecking()
Gets whether tautomers are considered during DUPLICATE search.
|
void |
setAbsoluteStereo(boolean absoluteStereo)
Specifies if structures should be treated as absolute stereo during database search.
|
void |
setCacheUpdaterType(chemaxon.jchem.base.storage.cache.CacheUpdaterType cacheUpdaterType)
Sets the cache update type.
|
void |
setChemTermColsConfig(java.util.Map<java.lang.String,java.lang.String> chemTermColsConfig)
Sets the map having as keys the names of columns which must be assigned a value (during structure import and
update).
|
void |
setDuplicateFiltering(boolean duplicateFiltering)
Specifies the duplicate filtering option.
|
void |
setExtraColumnDefinitions(java.lang.String extraColumnDefinitions)
Sets the definitions of additional columns.
|
void |
setFpNumberOfBonds(int fp_numberOfBonds)
Sets the maximum pattern length.
|
void |
setFpNumberOfInts(int fp_numberOfInts)
Sets the length of the chemical hashed fingerprint in
int size units
(bit count / 32). |
void |
setFpNumberOfOnes(int fp_numberOfOnes)
Sets the number of bits to be set for patterns.
|
void |
setMysqlTableType(int mysqlTableType)
Specifies table engine for MySql.
|
void |
setName(java.lang.String name) |
void |
setStandardizerConfig(java.lang.String standardizerConfig)
Sets the standardization configuration string (XML or simple action string).
|
void |
setStructuralKeyConfig(StrucFPConfig structuralKeyConfig)
Sets the structural key configuration.
|
void |
setStructureColumnType(int structureColumnType)
Sets the structure column type.
|
void |
setTableType(int tableType) |
void |
setTautomerDuplicateChecking(boolean tautomerDuplicateChecking)
Specifies if tautomers should be considered during DUPLICATE search, e.g.
|
void |
setTautomerEqualityMode(chemaxon.sss.search.options.TautomerTransformationMode tautomerEqualityMode) |
public StructureTableOptions(java.lang.String name, int tableType)
name
- table nametableType
- table typepublic StructureTableOptions(java.lang.String name)
TableTypeConstants.TABLE_TYPE_DEFAULT
).name
- table namepublic java.lang.String getName()
public int getFpNumberOfInts()
int
size unitspublic int getFpNumberOfOnes()
public int getFpNumberOfEdges()
public java.lang.String getStandardizerConfig()
public boolean isAbsoluteStereo()
public StrucFPConfig getStructuralKeyConfig()
public java.util.Map<java.lang.String,java.lang.String> getChemTermColsConfig()
public int getTableType()
public boolean isTautomerDuplicateChecking()
public java.lang.String getExtraColumnDefinitions()
public int getStructureColumnType()
cd_structure
column.cd_structure
columnpublic int getMysqlTableType()
public boolean isDuplicateFiltering()
public chemaxon.jchem.base.storage.cache.CacheUpdaterType getCacheUpdaterType()
public void setFpNumberOfInts(int fp_numberOfInts)
int
size units
(bit count / 32). The value should be greater than or equal to 8.fp_numberOfInts
- the chemical hashed fingerprint in int
size unitspublic void setFpNumberOfOnes(int fp_numberOfOnes)
fp_numberOfOnes
- the number of bits to setpublic void setFpNumberOfBonds(int fp_numberOfBonds)
fp_numberOfBonds
- maximum pattern lengthpublic void setStandardizerConfig(java.lang.String standardizerConfig)
standardizerConfig
- the standardization configuration stringpublic void setAbsoluteStereo(boolean absoluteStereo)
absoluteStereo
- whether structures should be treated as absolute stereo during database searchpublic void setStructuralKeyConfig(StrucFPConfig structuralKeyConfig)
structuralKeyConfig
- the structural key configurationStrucFPConfig
public void setChemTermColsConfig(java.util.Map<java.lang.String,java.lang.String> chemTermColsConfig)
chemTermColsConfig
- the chemical terms expressionpublic void setTautomerDuplicateChecking(boolean tautomerDuplicateChecking)
true
the import / insert of structures requires some additional CPU time.tautomerDuplicateChecking
- whether tautomers should be considered during DUPLICATE search or import.public void setExtraColumnDefinitions(java.lang.String extraColumnDefinitions)
columnDefs
field
CREATE
statement for legal column definitions.
extraColumnDefinitions
- the definitions of additional columnspublic void setStructureColumnType(int structureColumnType)
structureColumnType
- the structure column typepublic void setMysqlTableType(int mysqlTableType)
mysqlTableType
- the mysql table typeTableTypeConstants.MYSQL_DEFAULT_TABLE_TYPE
,
TableTypeConstants.MYSQL_FORCE_INNO_DB
,
TableTypeConstants.MYSQL_FORCE_MYISAM
public void setDuplicateFiltering(boolean duplicateFiltering)
duplicateFiltering
- duplicate filtering optionpublic void setCacheUpdaterType(chemaxon.jchem.base.storage.cache.CacheUpdaterType cacheUpdaterType)
cacheUpdaterType
- the method to update cachepublic void setName(java.lang.String name)
name
- the name to setpublic void setTableType(int tableType)
tableType
- the tableType to set@Beta public chemaxon.sss.search.options.TautomerTransformationMode getTautomerEqualityMode()
@Beta public void setTautomerEqualityMode(chemaxon.sss.search.options.TautomerTransformationMode tautomerEqualityMode)