databaseutils.html

来自「数据挖掘的最常用工具。由于开源」· HTML 代码 · 共 1,563 行 · 第 1/4 页

HTML
1,563
字号
<TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/DatabaseUtils.html#getDatabaseURL()">getDatabaseURL</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the value of DatabaseURL.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/DatabaseUtils.html#getDebug()">getDebug</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets whether there should be printed some debugging output to stderr or not.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/DatabaseUtils.html#getPassword()">getPassword</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the database password.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.Object[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/DatabaseUtils.html#getResultFromTable(java.lang.String, weka.experiment.ResultProducer, java.lang.Object[])">getResultFromTable</A></B>(java.lang.String&nbsp;tableName,                   <A HREF="../../weka/experiment/ResultProducer.html" title="interface in weka.experiment">ResultProducer</A>&nbsp;rp,                   java.lang.Object[]&nbsp;key)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Executes a database query to extract a result for the supplied key from the database.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.sql.ResultSet</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/DatabaseUtils.html#getResultSet()">getResultSet</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the results generated by a previous query.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/DatabaseUtils.html#getResultsTableName(weka.experiment.ResultProducer)">getResultsTableName</A></B>(<A HREF="../../weka/experiment/ResultProducer.html" title="interface in weka.experiment">ResultProducer</A>&nbsp;rp)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the name of the experiment table that stores results from a particular ResultProducer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/DatabaseUtils.html#getRevision()">getRevision</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the revision string.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/DatabaseUtils.html#getUsername()">getUsername</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the database username.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/DatabaseUtils.html#isConnected()">isConnected</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if a database connection is active.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/DatabaseUtils.html#isCursorScrollSensitive()">isCursorScrollSensitive</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns whether the cursors only support forward movement or are scroll sensitive (with ResultSet.CONCUR_READ_ONLY concurrency).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/DatabaseUtils.html#passwordTipText()">passwordTipText</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the tip text for this property.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/DatabaseUtils.html#processKeyString(java.lang.String)">processKeyString</A></B>(java.lang.String&nbsp;s)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;processes the string in such a way that it can be stored in the database, i.e., it changes backslashes into slashes and doubles single  quotes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/DatabaseUtils.html#putResultInTable(java.lang.String, weka.experiment.ResultProducer, java.lang.Object[], java.lang.Object[])">putResultInTable</A></B>(java.lang.String&nbsp;tableName,                 <A HREF="../../weka/experiment/ResultProducer.html" title="interface in weka.experiment">ResultProducer</A>&nbsp;rp,                 java.lang.Object[]&nbsp;key,                 java.lang.Object[]&nbsp;result)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Executes a database query to insert a result for the supplied key into the database.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.sql.ResultSet</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/DatabaseUtils.html#select(java.lang.String)">select</A></B>(java.lang.String&nbsp;query)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Executes a SQL SELECT query that returns a ResultSet.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/DatabaseUtils.html#setDatabaseURL(java.lang.String)">setDatabaseURL</A></B>(java.lang.String&nbsp;newDatabaseURL)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the value of DatabaseURL.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/DatabaseUtils.html#setDebug(boolean)">setDebug</A></B>(boolean&nbsp;d)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets whether there should be printed some debugging output to stderr or not.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/DatabaseUtils.html#setPassword(java.lang.String)">setPassword</A></B>(java.lang.String&nbsp;password)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the database password.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/DatabaseUtils.html#setUsername(java.lang.String)">setUsername</A></B>(java.lang.String&nbsp;username)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the database username.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/DatabaseUtils.html#tableExists(java.lang.String)">tableExists</A></B>(java.lang.String&nbsp;tableName)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks that a given table exists.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/DatabaseUtils.html#translateDBColumnType(java.lang.String)">translateDBColumnType</A></B>(java.lang.String&nbsp;type)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;translates the column data type string to an integer value that indicates which data type / get()-Method to use in order to retrieve values from the database (see DatabaseUtils.Properties, InstanceQuery()).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/DatabaseUtils.html#typeName(int)">typeName</A></B>(int&nbsp;type)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the name associated with a SQL type.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/DatabaseUtils.html#update(java.lang.String)">update</A></B>(java.lang.String&nbsp;query)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Executes a SQL DDL query or an INSERT, DELETE or UPDATE.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/DatabaseUtils.html#usernameTipText()">usernameTipText</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the tip text for this property.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Field Detail</B></FONT></TH></TR></TABLE><A NAME="EXP_INDEX_TABLE"><!-- --></A><H3>EXP_INDEX_TABLE</H3><PRE>public static final java.lang.String <B>EXP_INDEX_TABLE</B></PRE><DL><DD>The name of the table containing the index to experiments.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#weka.experiment.DatabaseUtils.EXP_INDEX_TABLE">Constant Field Values</A></DL></DL><HR><A NAME="EXP_TYPE_COL"><!-- --></A><H3>EXP_TYPE_COL</H3><PRE>public static final java.lang.String <B>EXP_TYPE_COL</B></PRE><DL><DD>The name of the column containing the experiment type (ResultProducer).<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#weka.experiment.DatabaseUtils.EXP_TYPE_COL">Constant Field Values</A></DL></DL><HR><A NAME="EXP_SETUP_COL"><!-- --></A><H3>EXP_SETUP_COL</H3><PRE>public static final java.lang.String <B>EXP_SETUP_COL</B></PRE><DL><DD>The name of the column containing the experiment setup (parameters).<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#weka.experiment.DatabaseUtils.EXP_SETUP_COL">Constant Field Values</A></DL></DL><HR><A NAME="EXP_RESULT_COL"><!-- --></A><H3>EXP_RESULT_COL</H3><PRE>public static final java.lang.String <B>EXP_RESULT_COL</B></PRE><DL><DD>The name of the column containing the results table name.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#weka.experiment.DatabaseUtils.EXP_RESULT_COL">Constant Field Values</A></DL></DL><HR><A NAME="EXP_RESULT_PREFIX"><!-- --></A><H3>EXP_RESULT_PREFIX</H3><PRE>public static final java.lang.String <B>EXP_RESULT_PREFIX</B></PRE><DL><DD>The prefix for result table names.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#weka.experiment.DatabaseUtils.EXP_RESULT_PREFIX">Constant Field Values</A></DL></DL><HR><A NAME="PROPERTY_FILE"><!-- --></A><H3>PROPERTY_FILE</H3><PRE>public static final java.lang.String <B>PROPERTY_FILE</B></PRE><DL><DD>The name of the properties file.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#weka.experiment.DatabaseUtils.PROPERTY_FILE">Constant Field Values</A></DL></DL><HR><A NAME="STRING"><!-- --></A><H3>STRING</H3><PRE>public static final int <B>STRING</B></PRE><DL><DD>Type mapping for STRING used for reading experiment results.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#weka.experiment.DatabaseUtils.STRING">Constant Field Values</A></DL></DL><HR><A NAME="BOOL"><!-- --></A><H3>BOOL</H3><PRE>public static final int <B>BOOL</B></PRE><DL><DD>Type mapping for BOOL used for reading experiment results.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#weka.experiment.DatabaseUtils.BOOL">Constant Field Values</A></DL></DL><HR><A NAME="DOUBLE"><!-- --></A><H3>DOUBLE</H3><PRE>public static final int <B>DOUBLE</B></PRE><DL><DD>Type mapping for DOUBLE used for reading experiment results.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#weka.experiment.DatabaseUtils.DOUBLE">Constant Field Values</A></DL></DL><HR><A NAME="BYTE"><!-- --></A><H3>BYTE</H3><PRE>public static final int <B>BYTE</B></PRE><DL><DD>Type mapping for BYTE used for reading experiment results.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#weka.experiment.DatabaseUtils.BYTE">Constant Field Values</A></DL></DL><HR><A NAME="SHORT"><!-- --></A><H3>SHORT</H3><PRE>public static final int <B>SHORT</B></PRE><DL><DD>Type mapping for SHORT used for reading experiment results.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#weka.experiment.DatabaseUtils.SHORT">Constant Field Values</A></DL></DL><HR><A NAME="INTEGER"><!-- --></A><H3>INTEGER</H3><PRE>public static final int <B>INTEGER</B></PRE><DL><DD>Type mapping for INTEGER used for reading experiment results.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#weka.experiment.DatabaseUtils.INTEGER">Constant Field Values</A></DL></DL><HR><A NAME="LONG"><!-- --></A><H3>LONG</H3><PRE>public static final int <B>LONG</B></PRE><DL><DD>Type mapping for LONG used for reading experiment results.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#weka.experiment.DatabaseUtils.LONG">Constant Field Values</A></DL></DL><HR><A NAME="FLOAT"><!-- --></A><H3>FLOAT</H3><PRE>public static final int <B>FLOAT</B></PRE><DL><DD>Type mapping for FLOAT used for reading experiment results.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#weka.experiment.DatabaseUtils.FLOAT">Constant Field Values</A></DL></DL><HR><A NAME="DATE"><!-- --></A><H3>DATE</H3><PRE>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?