edu.iastate.anthill.indus.query
Class ARFFParser

java.lang.Object
  extended byedu.iastate.anthill.indus.query.ARFFParser

public class ARFFParser
extends java.lang.Object


Field Summary
(package private)  java.util.ArrayList AttributeList
          The list of attributes of the data source
(package private)  java.util.ArrayList AttributeTypeList
           
(package private)  java.util.ArrayList[] AttributeValueList
           
(package private)  java.sql.Connection conn
          Connection to the database.
(package private)  java.lang.String FileURL
          URL of the ARFF File
(package private)  java.lang.String LocalCopyOfFile
          Copy the file from the Internet into the local machine.
(package private)  int totalNumInstances
          The total number of instances in the data source
 
Constructor Summary
ARFFParser(java.lang.String fileURL, java.lang.String DataSourceName)
          Default Constructor
 
Method Summary
 java.util.ArrayList getAttributeList()
          This method returns the attributes of the data source.
 java.util.ArrayList getAttributeTypeList()
          This method returns the types of those attributes for the data source.
 int getTotalNumInstances()
          This method returns the total number of instances in the ARFF File.
 void InsertARFFIntoRDBMS(java.sql.Connection conn, java.lang.String DataTableName)
          This method stores the ARFF data into a RDBMS.
 java.sql.ResultSet RetrieveSchema(java.sql.Connection conn, java.lang.String TableName)
          This method returns a resultset containing the schema information for a particular table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

conn

java.sql.Connection conn
Connection to the database.


FileURL

java.lang.String FileURL
URL of the ARFF File


totalNumInstances

int totalNumInstances
The total number of instances in the data source


LocalCopyOfFile

java.lang.String LocalCopyOfFile
Copy the file from the Internet into the local machine.


AttributeList

java.util.ArrayList AttributeList
The list of attributes of the data source


AttributeTypeList

java.util.ArrayList AttributeTypeList

AttributeValueList

java.util.ArrayList[] AttributeValueList
Constructor Detail

ARFFParser

public ARFFParser(java.lang.String fileURL,
                  java.lang.String DataSourceName)
           throws java.lang.Exception
Default Constructor

Parameters:
fileURL - the url where the file is located.
DataSourceName - the name of the ARFF data source.
Throws:
java.lang.Exception
Method Detail

InsertARFFIntoRDBMS

public void InsertARFFIntoRDBMS(java.sql.Connection conn,
                                java.lang.String DataTableName)
                         throws java.lang.Exception
This method stores the ARFF data into a RDBMS.

Parameters:
conn - the SQL Connection.
Throws:
java.lang.Exception - Last Modified - 2:22:31 PM, Mar 23, 2005

RetrieveSchema

public java.sql.ResultSet RetrieveSchema(java.sql.Connection conn,
                                         java.lang.String TableName)
                                  throws java.lang.Exception
This method returns a resultset containing the schema information for a particular table.

Parameters:
conn - SQLConnection.
Returns:
the resultset.
Throws:
java.lang.Exception - Last Modified - 1:37:15 PM, Mar 23, 2005

getAttributeList

public java.util.ArrayList getAttributeList()
This method returns the attributes of the data source.

Returns:

getAttributeTypeList

public java.util.ArrayList getAttributeTypeList()
This method returns the types of those attributes for the data source.

Returns:

getTotalNumInstances

public int getTotalNumInstances()
This method returns the total number of instances in the ARFF File.

Returns: