Oracle Data Mining Java API Reference
10g Release 1 (10.1)

B12276-01

oracle.dmt.odm.rule
Interface MiningRuleSet


public interface MiningRuleSet

The interface MiningRuleSet provides methods to support retrieval of rules from the Association Rules model, the Adaptive Bayes Network model, and the Clustering model.

See Also:
AssociationRulesModel, AdaptiveBayesNetworkModel, ClusteringModel

Method Summary
 void close()
          Closes the connection and other JDBC related objects.
 MiningRule getNextRule()
          Returns the next mining rule in the rule set.
 MiningRule[] getNextRules(int numRules)
          Returns the specified number of mining rules from the rule set.
 int getNumberOfRules()
          Returns the number of rules in the rule set.
 MiningRule[] getRules()
          Returns all mining rules in the rule set.

 

Method Detail

getNumberOfRules

public int getNumberOfRules()
Returns the number of rules in the rule set.
Returns:
int - The number of rules

getNextRule

public MiningRule getNextRule()
                                           throws java.sql.SQLException,
MiningObjectException,
ODMException
Returns the next mining rule in the rule set.
Returns:
MiningRule - The retrieved mining rule
Throws:
java.sql.SQLException - when an error occurs during execution of rules retrieval.
MiningObjectException - when a retrieved rule is invalid.
ODMException - when an unknown error occurs during rules retrieval.

getRules

public MiningRule[] getRules()
                                          throws java.sql.SQLException,
MiningObjectException,
ODMException
Returns all mining rules in the rule set. In case of AssociationRules model, this method returns only the all the next rules from the current rule position.
Returns:
MiningRule[] - An array of mining rules
Throws:
java.sql.SQLException - when an error occurs during execution of rules retrieval.
MiningObjectException
ODMException

close

public void close()
           throws java.sql.SQLException
Closes the connection and other JDBC related objects. This method must be invoked when the rules in the rule set are retrieved.
Throws:
java.sql.SQLException - when an error occurs while closing the connection and JDBC related objects.

getNextRules

public MiningRule[] getNextRules(int numRules)
                                              throws java.sql.SQLException,
InvalidArgumentException,
MiningObjectException,
ODMException
Returns the specified number of mining rules from the rule set.
Parameters:
numRules - The number of rules to be retrieved
Returns:
MiningRule[] - An array of retrieved mining rules
Throws:
java.sql.SQLException - when an error occurs during execution of rules retrieval.
MiningObjectException - when a retrieved rule is invalid.
ODMException - when an unknown error occurs during rules retrieval.
InvalidArgumentException

Copyright © 2003 Oracle Corporation. All Rights Reserved.