📄 databaseresultlistener.html
字号:
<CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/DatabaseResultListener.html#globalInfo()">globalInfo</A></B>()</CODE><BR> Returns a string describing this result listener</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/DatabaseResultListener.html#isCacheValid(java.lang.Object[])">isCacheValid</A></B>(java.lang.Object[] key)</CODE><BR> Checks whether the current cache contents are valid for the supplied key.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/DatabaseResultListener.html#isKeyInCache(weka.experiment.ResultProducer, java.lang.Object[])">isKeyInCache</A></B>(<A HREF="../../weka/experiment/ResultProducer.html">ResultProducer</A> rp, java.lang.Object[] key)</CODE><BR> Returns true if the supplied key is in the key cache (and thus we do not need to execute a database query).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/DatabaseResultListener.html#isResultRequired(weka.experiment.ResultProducer, java.lang.Object[])">isResultRequired</A></B>(<A HREF="../../weka/experiment/ResultProducer.html">ResultProducer</A> rp, java.lang.Object[] key)</CODE><BR> Always says a result is required.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/DatabaseResultListener.html#loadCache(weka.experiment.ResultProducer, java.lang.Object[])">loadCache</A></B>(<A HREF="../../weka/experiment/ResultProducer.html">ResultProducer</A> rp, java.lang.Object[] key)</CODE><BR> Executes a database query to fill the key cache</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/DatabaseResultListener.html#postProcess(weka.experiment.ResultProducer)">postProcess</A></B>(<A HREF="../../weka/experiment/ResultProducer.html">ResultProducer</A> rp)</CODE><BR> Perform any postprocessing.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/DatabaseResultListener.html#preProcess(weka.experiment.ResultProducer)">preProcess</A></B>(<A HREF="../../weka/experiment/ResultProducer.html">ResultProducer</A> rp)</CODE><BR> Prepare for the results to be received.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/DatabaseResultListener.html#setCacheKeyName(java.lang.String)">setCacheKeyName</A></B>(java.lang.String newCacheKeyName)</CODE><BR> Set the value of CacheKeyName.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/DatabaseResultListener.html#updateResultsTableName(weka.experiment.ResultProducer)">updateResultsTableName</A></B>(<A HREF="../../weka/experiment/ResultProducer.html">ResultProducer</A> rp)</CODE><BR> Determines the table name that results will be inserted into.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_weka.experiment.DatabaseUtils"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class weka.experiment.<A HREF="../../weka/experiment/DatabaseUtils.html">DatabaseUtils</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../weka/experiment/DatabaseUtils.html#arrayToString(java.lang.Object[])">arrayToString</A>, <A HREF="../../weka/experiment/DatabaseUtils.html#connectToDatabase()">connectToDatabase</A>, <A HREF="../../weka/experiment/DatabaseUtils.html#createExperimentIndex()">createExperimentIndex</A>, <A HREF="../../weka/experiment/DatabaseUtils.html#createExperimentIndexEntry(weka.experiment.ResultProducer)">createExperimentIndexEntry</A>, <A HREF="../../weka/experiment/DatabaseUtils.html#createResultsTable(weka.experiment.ResultProducer, java.lang.String)">createResultsTable</A>, <A HREF="../../weka/experiment/DatabaseUtils.html#databaseURLTipText()">databaseURLTipText</A>, <A HREF="../../weka/experiment/DatabaseUtils.html#disconnectFromDatabase()">disconnectFromDatabase</A>, <A HREF="../../weka/experiment/DatabaseUtils.html#execute(java.lang.String)">execute</A>, <A HREF="../../weka/experiment/DatabaseUtils.html#experimentIndexExists()">experimentIndexExists</A>, <A HREF="../../weka/experiment/DatabaseUtils.html#getDatabaseURL()">getDatabaseURL</A>, <A HREF="../../weka/experiment/DatabaseUtils.html#getResultFromTable(java.lang.String, weka.experiment.ResultProducer, java.lang.Object[])">getResultFromTable</A>, <A HREF="../../weka/experiment/DatabaseUtils.html#getResultSet()">getResultSet</A>, <A HREF="../../weka/experiment/DatabaseUtils.html#getResultsTableName(weka.experiment.ResultProducer)">getResultsTableName</A>, <A HREF="../../weka/experiment/DatabaseUtils.html#isConnected()">isConnected</A>, <A HREF="../../weka/experiment/DatabaseUtils.html#isKeyInTable(java.lang.String, weka.experiment.ResultProducer, java.lang.Object[])">isKeyInTable</A>, <A HREF="../../weka/experiment/DatabaseUtils.html#putResultInTable(java.lang.String, weka.experiment.ResultProducer, java.lang.Object[], java.lang.Object[])">putResultInTable</A>, <A HREF="../../weka/experiment/DatabaseUtils.html#setDatabaseURL(java.lang.String)">setDatabaseURL</A>, <A HREF="../../weka/experiment/DatabaseUtils.html#tableExists(java.lang.String)">tableExists</A>, <A HREF="../../weka/experiment/DatabaseUtils.html#typeName(int)">typeName</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="m_ResultProducer"><!-- --></A><H3>m_ResultProducer</H3><PRE>protected <A HREF="../../weka/experiment/ResultProducer.html">ResultProducer</A> <B>m_ResultProducer</B></PRE><DL><DD>The ResultProducer to listen to</DL><HR><A NAME="m_ResultsTableName"><!-- --></A><H3>m_ResultsTableName</H3><PRE>protected java.lang.String <B>m_ResultsTableName</B></PRE><DL><DD>The name of the current results table</DL><HR><A NAME="m_Debug"><!-- --></A><H3>m_Debug</H3><PRE>protected boolean <B>m_Debug</B></PRE><DL><DD>True if debugging output should be printed</DL><HR><A NAME="m_CacheKeyName"><!-- --></A><H3>m_CacheKeyName</H3><PRE>protected java.lang.String <B>m_CacheKeyName</B></PRE><DL><DD>Holds the name of the key field to cache upon, or null if no caching</DL><HR><A NAME="m_CacheKeyIndex"><!-- --></A><H3>m_CacheKeyIndex</H3><PRE>protected int <B>m_CacheKeyIndex</B></PRE><DL><DD>Stores the index of the key column holding the cache key data</DL><HR><A NAME="m_CacheKey"><!-- --></A><H3>m_CacheKey</H3><PRE>protected java.lang.Object[] <B>m_CacheKey</B></PRE><DL><DD>Stores the key for which the cache is valid</DL><HR><A NAME="m_Cache"><!-- --></A><H3>m_Cache</H3><PRE>protected <A HREF="../../weka/core/FastVector.html">FastVector</A> <B>m_Cache</B></PRE><DL><DD>Stores the cached values</DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="DatabaseResultListener()"><!-- --></A><H3>DatabaseResultListener</H3><PRE>public <B>DatabaseResultListener</B>() throws java.lang.Exception</PRE><DL><DD>Sets up the database drivers<DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if an error occurs</DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="globalInfo()"><!-- --></A><H3>globalInfo</H3><PRE>public java.lang.String <B>globalInfo</B>()</PRE><DL><DD>Returns a string describing this result listener<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a description of the result listener suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="preProcess(weka.experiment.ResultProducer)"><!-- --></A><H3>preProcess</H3><PRE>public void <B>preProcess</B>(<A HREF="../../weka/experiment/ResultProducer.html">ResultProducer</A> rp) throws java.lang.Exception</PRE><DL><DD>Prepare for the results to be received.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../weka/experiment/ResultListener.html#preProcess(weka.experiment.ResultProducer)">preProcess</A></CODE> in interface <CODE><A HREF="../../weka/experiment/ResultListener.html">ResultListener</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rp</CODE> - the ResultProducer that will generate the results<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if an error occurs during preprocessing.</DL></DD></DL><HR><A NAME="postProcess(weka.experiment.ResultProducer)"><!-- --></A><H3>postProcess</H3>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -