程序包 weka.experiment
类 DatabaseResultListener
java.lang.Object
weka.experiment.DatabaseUtils
weka.experiment.DatabaseResultListener
- 所有已实现的接口:
Serializable
,RevisionHandler
,ResultListener
- 直接已知子类:
DatabaseResultProducer
Takes results from a result producer and sends them to a database.
- 版本:
- $Revision: 5125 $
- 作者:
- Len Trigg (trigg@cs.waikato.ac.nz)
- 另请参阅:
-
字段概要
从类继承的字段 weka.experiment.DatabaseUtils
BOOL, BYTE, DATE, DOUBLE, EXP_INDEX_TABLE, EXP_RESULT_COL, EXP_RESULT_PREFIX, EXP_SETUP_COL, EXP_TYPE_COL, FLOAT, INTEGER, LONG, PROPERTY_FILE, SHORT, STRING, TEXT, TIME, TIMESTAMP
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
acceptResult
(ResultProducer rp, Object[] key, Object[] result) Submit the result to the appropriate table of the databaseReturns the tip text for this propertyString[]
Determines if there are any constraints (imposed by the destination) on any additional measures produced by resultProducers.Get the value of CacheKeyName.Returns the revision string.Returns a string describing this result listenerboolean
isResultRequired
(ResultProducer rp, Object[] key) Always says a result is required.void
Perform any postprocessing.void
Prepare for the results to be received.void
setCacheKeyName
(String newCacheKeyName) Set the value of CacheKeyName.从类继承的方法 weka.experiment.DatabaseUtils
arrayToString, close, close, connectToDatabase, createExperimentIndex, createExperimentIndexEntry, createResultsTable, databaseURLTipText, debugTipText, disconnectFromDatabase, execute, experimentIndexExists, getDatabaseURL, getDebug, getKeywords, getKeywordsMaskChar, getPassword, getResultFromTable, getResultSet, getResultsTableName, getSupportedCursorScrollType, getUsername, isConnected, isCursorScrollable, isCursorScrollSensitive, isKeyword, maskKeyword, passwordTipText, processKeyString, putResultInTable, select, setDatabaseURL, setDebug, setKeywords, setKeywordsMaskChar, setPassword, setUsername, tableExists, translateDBColumnType, typeName, update, usernameTipText
-
构造器详细资料
-
DatabaseResultListener
Sets up the database drivers- 抛出:
Exception
- if an error occurs
-
-
方法详细资料
-
globalInfo
Returns a string describing this result listener- 返回:
- a description of the result listener suitable for displaying in the explorer/experimenter gui
-
preProcess
Prepare for the results to be received.- 指定者:
preProcess
在接口中ResultListener
- 参数:
rp
- the ResultProducer that will generate the results- 抛出:
Exception
- if an error occurs during preprocessing.
-
postProcess
Perform any postprocessing. When this method is called, it indicates that no more results will be sent that need to be grouped together in any way.- 指定者:
postProcess
在接口中ResultListener
- 参数:
rp
- the ResultProducer that generated the results- 抛出:
Exception
- if an error occurs
-
determineColumnConstraints
Determines if there are any constraints (imposed by the destination) on any additional measures produced by resultProducers. Null should be returned if there are NO constraints, otherwise a list of column names should be returned as an array of Strings. In the case of DatabaseResultListener, the structure of an existing database will impose constraints.- 指定者:
determineColumnConstraints
在接口中ResultListener
- 参数:
rp
- the ResultProducer to which the constraints will apply- 返回:
- an array of column names to which resutltProducer's results will be restricted.
- 抛出:
Exception
- if an error occurs.
-
acceptResult
Submit the result to the appropriate table of the database- 指定者:
acceptResult
在接口中ResultListener
- 参数:
rp
- the ResultProducer that generated the resultkey
- The key for the results.result
- The actual results.- 抛出:
Exception
- if the result couldn't be sent to the database
-
isResultRequired
Always says a result is required. If this is the first call, prints out the header for the Database output.- 指定者:
isResultRequired
在接口中ResultListener
- 参数:
rp
- the ResultProducer wanting to generate the resultkey
- The key for which a result may be needed.- 返回:
- true if the result should be calculated.
- 抛出:
Exception
- if the database couldn't be queried
-
cacheKeyNameTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getCacheKeyName
Get the value of CacheKeyName.- 返回:
- Value of CacheKeyName.
-
setCacheKeyName
Set the value of CacheKeyName.- 参数:
newCacheKeyName
- Value to assign to CacheKeyName.
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中DatabaseUtils
- 返回:
- the revision
-