public class MatchCaseCompoundQueryBuilder extends AQBPCompoundQueryBuilder
file_mgr
Constructor and Description |
---|
MatchCaseCompoundQueryBuilder() |
Modifier and Type | Method and Description |
---|---|
com.netrics.likeit.NetricsQuery |
getQuery()
Generate the match case compound matching query.
|
com.netrics.likeit.NetricsQuery |
getQuery(com.netrics.likeit.NetricsQuery[] features_real)
Generate the match case compound matching query for a given
set of features.
|
java.lang.Object |
setConfiguration(java.io.File config_file)
Configure this object from a configuration file.
|
java.lang.Object |
setConfiguration(java.io.InputStream config_stream)
Configure this object from an input stream.
|
void |
setConfiguration(java.lang.Object config_object)
Configure this match case query generator from an external configuration object.
|
protected void |
setConfiguration(java.lang.Object config_object,
java.util.List<com.netrics.likeit.ANetricsCompoundQueryBuilder.FeatureDef> ext_features,
AQBPLogger logger)
Configure this object from an external configuration object and a set of features.
|
java.lang.Object |
setConfiguration(java.lang.String config_src)
Configure this object from a configuration source.
|
getBuilderClassObject, setBuilderConfig, setFileMgr
addDefaultItem, changeItemName, getCurInputFieldNames, getCurItemName, getCurJoinedFieldNames, getCurJoinedFieldNames, getCurOutputFieldNames, getCurrentInputTableNames, getCurrentOutputTableNames, getDefaultItemNames, getDefaultTableNames, getDfltInputNames, getDfltOutputNames, getFeatureQueryletLists, getFeatureQuerylets, getJoinConfig, getUsedItemTypes, setDefaultValue, setFeatures, setFieldValuesFromList, setFieldValuesFromMap, setFieldValuesFromRecord, setInputFieldName, setInputFieldNames, setInputFieldOrdering, setInputTableName, setInputTableNames, setOutputFieldName, setOutputFieldNames, setOutputTableName, setQueryConfiguration, setSearchOpts, setTables
public java.lang.Object setConfiguration(java.io.InputStream config_stream) throws java.lang.IllegalArgumentException, java.lang.UnsupportedOperationException, java.lang.IllegalStateException
setConfiguration
in class com.netrics.likeit.ANetricsCompoundQueryBuilder
config_stream
- this must be an open stream containing
a valid XML MatchCaseBuilderConfig element.java.lang.IllegalArgumentException
- if config_stream is null,
or does not contain a valid MatchCaseBuilderConfig
element as the top level item.java.lang.IllegalStateException
- if this object is already initialized.java.lang.UnsupportedOperationException
public java.lang.Object setConfiguration(java.lang.String config_src) throws java.lang.IllegalArgumentException, java.lang.UnsupportedOperationException, java.lang.IllegalStateException
setConfiguration
in class com.netrics.likeit.ANetricsCompoundQueryBuilder
config_src
- this must be source containing
a valid MatchCaseBuilderConfig XML element.java.lang.IllegalArgumentException
- if config_src is null, is not
an existing, readable source, or does not contain
an MatchCaseBuilderConfig XML element as the top level item.java.lang.IllegalStateException
- if this object is already initialized.java.lang.UnsupportedOperationException
protected void setConfiguration(java.lang.Object config_object, java.util.List<com.netrics.likeit.ANetricsCompoundQueryBuilder.FeatureDef> ext_features, AQBPLogger logger) throws AQBPLogger.QBPConfigException, java.lang.IllegalStateException
setConfiguration
in class AQBPCompoundQueryBuilder
config_object
- this must be a valid MatchCaseBuilderConfig object.ext_features
- the features for this object. The list must match
the length of the features defined in the config_object.logger
- to log all errors, if null a default logger is used that
always throws an exception.java.lang.IllegalStateException
- if this object is already initialized.AQBPLogger.QBPConfigException
- if config_object is null, not a
MatchCaseBuilderConfig object, or is not a valid configuration.public void setConfiguration(java.lang.Object config_object) throws java.lang.UnsupportedOperationException, java.lang.IllegalArgumentException, java.lang.IllegalStateException
setConfiguration
in class com.netrics.likeit.ANetricsCompoundQueryBuilder
config_object
- this must be a valid MatchCaseBuilderConfig object.java.lang.IllegalStateException
- if this object is already initialized.java.lang.IllegalArgumentException
- if config_object is null, not a
MatchCaseBuilderConfig object, or is not a valid configuration.java.lang.UnsupportedOperationException
public java.lang.Object setConfiguration(java.io.File config_file) throws java.lang.IllegalArgumentException, java.lang.UnsupportedOperationException, java.lang.IllegalStateException
setConfiguration
in class com.netrics.likeit.ANetricsCompoundQueryBuilder
config_file
- this must be an XML file containing
a valid MatchCaseBuilderConfig description.java.lang.IllegalArgumentException
- if config_file is null, is not
an existing, readable file, or does not contain
a MatchCaseBuilderConfig XML element as the top level item.java.lang.IllegalStateException
- if this object is already initialized.java.lang.UnsupportedOperationException
public com.netrics.likeit.NetricsQuery getQuery(com.netrics.likeit.NetricsQuery[] features_real) throws java.lang.IllegalStateException, java.lang.Exception
getQuery
in class AQBPCompoundQueryBuilder
features_real
- array of query objects for features.
This must match the feature list for this builder.java.lang.IllegalArgumentException
- if features_real is
null or the incorrect length.java.lang.IllegalStateException
- if this object is not initialized.java.lang.Exception
- if this object is corrupted.public com.netrics.likeit.NetricsQuery getQuery() throws java.lang.IllegalStateException, java.lang.Exception
getQuery
in class com.netrics.likeit.ANetricsCompoundQueryBuilder
java.lang.IllegalStateException
- if this object is not initialized,
or the field data is not set.java.lang.Exception
- if this object is corrupted.