Main Page | Class Hierarchy | Class List | Class Members

kddml.Operators.IO.ExternalResourceReader.ARFF_LOADER_SETTINGS Class Reference

Inheritance diagram for kddml.Operators.IO.ExternalResourceReader.ARFF_LOADER_SETTINGS:

kddml.Operators.IO.ExternalResourceReader.ExternalResourceReaderSettings kddml.Operators.IO.IOSettings 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 checkAttributes (Hashtable< String, KDDMLScalarManager > attributes) throws SettingsException

Static Protected Member Functions

static BufferedReader getARFFReader (Hashtable attributes)

Detailed Description

The operator loads an ARFF source gathered via local file system or via ftp, http protocols and returns an InternalTable as output. ARFF (Attribute-Relation File Format) file is a text file that consists of a list of instances with the attribute value for each instance being separated by commas. Mapping from ARFF types to the logical types of the output table is automatic.
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)
Version:
2.0.16


Member Function Documentation

String [] kddml.Operators.IO.ExternalResourceReader.ARFF_LOADER_SETTINGS.listAttributes  )  [virtual]
 

Returns the list of attributes belonging to the operator specification.

Returns:
String[]

Implements kddml.Operators.OperatorSettings.

Boolean kddml.Operators.IO.ExternalResourceReader.ARFF_LOADER_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.IO.ExternalResourceReader.ARFF_LOADER_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.IO.ExternalResourceReader.ARFF_LOADER_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.IO.ExternalResourceReader.ARFF_LOADER_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.IO.ExternalResourceReader.ARFF_LOADER_SETTINGS.checkAttributes Hashtable< String, KDDMLScalarManager attributes  )  throws SettingsException
 

Performs a correctness control about the input attributes of the operator (e.g., check that the level attribute of the <pp_hierarchy_discretization> operator is a positive integer number. Attributes are given as hash-table where the key of the hashtable is the XML attribute name and the value of the hashtable is the XML attribute value as KDDMLScalarManager. The method throws an exception if an error is occurs. More precisely, for each attribute returned by listAttributes(), the method checks if the hashtable contains the attribute. If this is the case, then a type checking is performed on attribute value. Otherwise, if the attribute is required (i.e. the method isRequired() returns true), then the method throws an exception.

Parameters:
attributes Hashtable the input attributes with the name as key and the value as KDDMLScalarManager object.
Exceptions:
SettingsException if a type checking error occurs or the attribute is required but the hashtable do not contains it.

Reimplemented from kddml.Operators.OperatorSettings.

static BufferedReader kddml.Operators.IO.ExternalResourceReader.ARFF_LOADER_SETTINGS.getARFFReader Hashtable  attributes  )  [static, protected]
 

Returns the ARFF source as BufferedReader given the hashtable containing the attributes ARFF_PATH_KEY and ARFF_NAME_KEY.

Parameters:
attributes Hashtable
Returns:
BufferedReader
Exceptions:
SettingsException 


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