Main Page | Class Hierarchy | Class List | Class Members

kddml.Operators.Preprocessing.PP_RENAME_ATTRIBUTES_SETTINGS Class Reference

Inheritance diagram for kddml.Operators.Preprocessing.PP_RENAME_ATTRIBUTES_SETTINGS:

kddml.Operators.Preprocessing.PreprocessingSettings kddml.Operators.OperatorSettings List of all members.

Public Member Functions

String[] listAttributes ()
Boolean isRequired (String attribute_name)
Boolean isFixed (String attribute_name)
String getDefaultAttributeValue (String attribute_name)
KDDMLScalarType getAttributeType (String attribute_name)
void checkCorrelationBetweenAttributes (Hashtable< String, KDDMLScalarManager > attributes) throws SettingsException

Detailed Description

The operator renames a list of attributes of the input data source. The list of old attributes and the list of new attributes can be given via XML attributes; the operator performs a position mapping between values. This operator works only on data schema: neither the physical records, nor the preprocessing section are affected.
Attributes:

Title: KDDML

Description: Knowledge Discovery in Database Environment

Copyright: Copyright (c) 2003-2005

Company: Universita' di Pisa - Dipartimento di Informatica

Author:
Andrea Romei (romei@di.unipi.it)

Sandra Zimei

Version:
2.0.16


Member Function Documentation

String [] kddml.Operators.Preprocessing.PP_RENAME_ATTRIBUTES_SETTINGS.listAttributes  )  [virtual]
 

Returns the list of attributes belonging to the operator specification.

Returns:
String[]

Implements kddml.Operators.OperatorSettings.

Boolean kddml.Operators.Preprocessing.PP_RENAME_ATTRIBUTES_SETTINGS.isRequired String  attribute_name  )  [virtual]
 

Returns true if a given attribute is required in the operator specification. Returns false if the attribute is implied or fixed. Finally, the method returns null if the attribute name do not belong to the list of attributes returned by the method listAttributes().

Parameters:
attribute_name String
Returns:
boolean

Implements kddml.Operators.OperatorSettings.

Boolean kddml.Operators.Preprocessing.PP_RENAME_ATTRIBUTES_SETTINGS.isFixed String  attribute_name  )  [virtual]
 

Returns true if a given attribute is fixed (i.e. constant) in the operator specification. Returns false if the attribute is implied or required. Finally, the method returns null if the attribute name do not belong to the list of attributes returned by the method listAttributes().

Parameters:
attribute_name String
Returns:
boolean

Implements kddml.Operators.OperatorSettings.

String kddml.Operators.Preprocessing.PP_RENAME_ATTRIBUTES_SETTINGS.getDefaultAttributeValue String  attribute_name  )  [virtual]
 

Returns the default value related to a given input attribute. Returns null if the attribute do not admit a default value. An attribute can be given any legal value as a default. The attribute value is not required on each element in the document, but if it is not present, it will appear to be the specified default. If the attribute is implied and it is not included in the element, the operator assumes that this is the attribute value.

Parameters:
attribute_name String
Returns:
String

Implements kddml.Operators.OperatorSettings.

KDDMLScalarType kddml.Operators.Preprocessing.PP_RENAME_ATTRIBUTES_SETTINGS.getAttributeType String  attribute_name  )  [virtual]
 

Returns the type related to a given input attribute. KDDML supports the attribute types as expressed by the class KDDMLScalarType. Returns null if the attribute name do no belong to the list of attributes returned by the method listAttributes().

Parameters:
attribute_name String
Returns:
KDDMLScalarType

Implements kddml.Operators.OperatorSettings.

void kddml.Operators.Preprocessing.PP_RENAME_ATTRIBUTES_SETTINGS.checkCorrelationBetweenAttributes Hashtable< String, KDDMLScalarManager attributes  )  throws SettingsException
 

Checks the correctness correlation between operator attributes. This method depends on the correlation level between the attribute and it is empty for a specific operator if and only if all attributes are independent. As instance, the user and password in the DATABASE_LOADER operator are independent. However, the attributes old_attribute_names and new_attribute_names in the PP_RENAME operator are not independent and they must share the same number of elements. The method can incorporate further controls independent on input attributes, e.g. that some particular events are true when the attribute is applied. By default, this method is empty and it can be ovverides under subclasses.

Parameters:
attributes Hashtable the attributes related to the operator with the relative value. The key of the hashtable is the name of the attribute. The value of the hashtable is a KDDMLScalar representing the value of the attribute. Each single attribute value is correct.
Exceptions:
SettingsException if the correlation checking returns an error.

Reimplemented from kddml.Operators.OperatorSettings.


Generated on Thu Feb 23 13:04:54 2006 for kddml by  doxygen 1.4.3