javax.datamining.data
Interface PhysicalDataSetFactory

All Superinterfaces:
Factory

public interface PhysicalDataSetFactory
extends Factory

A factory class that creates instances of PhysicalDataSet.

Author:
JSR-73 Java Data Mining Expert Group
See Also:
Factory

Method Summary
 PhysicalDataSet create(java.lang.String uri, boolean importMetaData)
          Creates an instance of PhysicalDataSet with the specified URI.
 boolean supportsCapability(PhysicalDataSetCapability capability)
          Returns true if the specified capability is supported in the implementation of the PhysicalData being used.
 

Method Detail

create

public PhysicalDataSet create(java.lang.String uri,
                              boolean importMetaData)
                       throws JDMException
Creates an instance of PhysicalDataSet with the specified URI. By parsing the URI, the storage of the data is detected: file or table. If importMetaData flag is true, the effect is equivalent to invoking importMetaData method immediately after create. If importMetaData flag is false, no metadata is imported.

Statistics may be populated automatically if they are available, this is vendor-specific. Statistics at this level may be approximate or exact.

If the data contains attributes that are not string, double, or integer, the vendor determines the mapping from the data source type to the JDM attribute type.

If a data type is not supported or mappable to one of the standard types, it has attribute data type of unknown.

Parameters:
uri - A URI string where the physical data is located.
importMetaData -
Returns:
PhysicalDataSet
Throws:
JDMException

supportsCapability

public boolean supportsCapability(PhysicalDataSetCapability capability)
                           throws JDMException
Returns true if the specified capability is supported in the implementation of the PhysicalData being used. Retruns false otherwise.

Parameters:
capability -
Returns:
boolean
Throws:
JDMException