ABLE 2.0.0 07/02/2003 10:25:01

com.ibm.able.beans
Interface AbleRemoteImportData

All Superinterfaces:
java.rmi.Remote

public interface AbleRemoteImportData
extends java.rmi.Remote

The AbleDataSource interface is implemented to provide common information about data sources, the records they provide, and the fields contained by those records. When a data source is opened, it is required to create a vector of AbleFields.


Method Summary
 void close()
          Set the number of records in the data source
 int getBufferSize()
          Get the current buffer size, the number of records to cache.
 java.util.Vector getFieldList()
          Return a Vector of AbleFields describing this datasource.
 int getNumFieldsPerRec()
          Returns the number of fields in each record in the data source.
 long getNumRecords()
          Returns the number of records in the data source.
 java.util.Vector getTextData()
          Return a vector of text data records.
 boolean isAllNumericData()
          Returns true if all fields are "continuous" or "discrete" false if any are "categorical" (i.e.
 boolean isReady()
          Returns whether the data source is ready to be opened.
 void open()
          Returns the number of records in the data source
 void readNextRecordBlock()
          Read the next block of records from the data source.
 void setBufferSize(int size)
          Get the current buffer size, the number of records to cache.
 void setFieldList(java.util.Vector fieldList)
          Set a Vector of AbleFields describing this datasource.
 

Method Detail

getNumRecords

public long getNumRecords()
                   throws java.rmi.RemoteException
Returns the number of records in the data source.

getNumFieldsPerRec

public int getNumFieldsPerRec()
                       throws java.rmi.RemoteException
Returns the number of fields in each record in the data source.

isReady

public boolean isReady()
                throws java.rmi.RemoteException
Returns whether the data source is ready to be opened.

isAllNumericData

public boolean isAllNumericData()
                         throws java.rmi.RemoteException
Returns true if all fields are "continuous" or "discrete" false if any are "categorical" (i.e. symbols)

getBufferSize

public int getBufferSize()
                  throws java.rmi.RemoteException
Get the current buffer size, the number of records to cache. A value of 0 means all records are kept in memory.

setBufferSize

public void setBufferSize(int size)
                   throws java.rmi.RemoteException
Get the current buffer size, the number of records to cache. A value of 0 means all records are kept in memory.

readNextRecordBlock

public void readNextRecordBlock()
                         throws java.rmi.RemoteException
Read the next block of records from the data source. If the end of the data source occurs before the buffer size is reached, wrap to the beginning of the file and continue until the buffer size is obtained. This populates the text and numeric data records.

getTextData

public java.util.Vector getTextData()
                             throws java.rmi.RemoteException
Return a vector of text data records.

open

public void open()
          throws java.rmi.RemoteException
Returns the number of records in the data source

close

public void close()
           throws java.rmi.RemoteException
Set the number of records in the data source

getFieldList

public java.util.Vector getFieldList()
                              throws java.rmi.RemoteException
Return a Vector of AbleFields describing this datasource.

setFieldList

public void setFieldList(java.util.Vector fieldList)
                  throws java.rmi.RemoteException
Set a Vector of AbleFields describing this datasource.

ABLE 2.0.0 07/02/2003 10:25:01

(C) Copyright IBM Corporation 1999, 2003