|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--ajax.catalog.Table
| Constructor Summary | |
Table(java.lang.String tableName,
java.util.LinkedList tableFields,
java.util.LinkedList keyFields)
Constructor of a table representing a base data flow supplied by the user. |
|
Table(java.lang.String name,
java.util.List schema,
java.util.List key,
Output output,
Transformation transf)
Constructor for a table that is the result of a outer join. |
|
Table(java.lang.String name,
Output output,
Transformation transf)
Constructor for a table that is the result of a transformation. |
|
| Method Summary | |
java.lang.String[][] |
DepConstraintToSQL()
Generates SQL code to execute the DEP constraint |
java.util.Iterator |
getExplainingAttributes()
Returns an Iterator through a list containg all the FieldType objects which correspond to the explaining attributes from this table |
java.util.Iterator |
getExplainingAttributes(java.lang.String tableName)
Returns an Iterator through a list containg those FieldType objects which correspond to the explaining attributes from this table which go back to the table given as parameter into String tableName argument |
java.util.Iterator |
getExplainingTables()
Returns an Iterator through the list of the table names that could explain this table |
java.util.Iterator |
getFields()
Returns an Iterator through all the fields that compose the schema of this table. |
java.util.Iterator |
getFields(java.lang.String name)
Returns an enumeration of all the fields that compose the schema of this table. |
FieldType |
getFieldType(java.lang.String fieldName,
java.lang.String tableName)
Given a field name, looks for the desired field and returns its type. |
int |
getIndexAttribute(java.lang.String tableName,
java.lang.String attribute)
Gets the index of an attribute Indexes start at 1 |
java.util.List |
getKey()
Returns the list of key attributes of this table. |
java.util.List |
getKey(java.lang.String name)
Returns the list of key attributes if the table´s name is equal to the specified name. |
java.util.Iterator |
getKeys()
Returns an Iterator through the list of key attributes of this table. |
java.lang.String |
getName()
Returns the name of this table. |
int |
getNbDepConstraints()
Returns the number of Dep constraints |
boolean |
hasExplainingTables()
Returns true if this table can be explained by going back to other tables. |
boolean |
hasKey(java.lang.String keyName)
Returns true if it is the name of a key attribute of this table |
boolean |
isToMaterialize()
Says if this table is the result of an output of a transformation or corresponds to a table defined by the user and supplied as input of the cleaning program. returns true in the first case and false in the second case. |
boolean |
isTransformation()
Returns false, since this catalog object is not a transformation. |
Output |
output()
returns the Output object associated to this table. |
void |
setWeaveRunTimePolicy(java.io.BufferedWriter bfw)
Generates and writes the specification runtime policy, needed by Weave to implement the Explainer, for this table. |
void |
setWeaveSchema(java.io.BufferedWriter bfw)
Generates and writes the specification schema, needed by Weave to implement the Explainer, for this table. |
java.lang.String |
toFile()
Generates code for materializing the result of a transformation in a file. |
java.lang.String |
toString()
Converts the table into a human read-able object. |
java.lang.String |
toTable()
toTable() Generates code to create a table in SQL that materializes the result of the transformation |
void |
toXML(java.lang.String XMLfileName)
Converts this CatalogObject into an XML document |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Table(java.lang.String name,
Output output,
Transformation transf)
public Table(java.lang.String name,
java.util.List schema,
java.util.List key,
Output output,
Transformation transf)
name - is the name of the table to materializeschema - is the schema of this table (a list of FieldType objects).key - is the key of this table (a list of FieldType objects).transf - is the transformation which will fill out this table
public Table(java.lang.String tableName,
java.util.LinkedList tableFields,
java.util.LinkedList keyFields)
throws CatalogException
tableName - is the name of the table.tableFields - is a list of FieldTypes objects that define the
table´s schema.keyFields - is a list containing the names of the key fileds of
this table.| Method Detail |
public final boolean isToMaterialize()
public final Output output()
public final boolean isTransformation()
isTransformation in interface CatalogObjectajax.catalog.CatalogObject
public FieldType getFieldType(java.lang.String fieldName,
java.lang.String tableName)
throws CatalogException
getFieldType in interface CatalogObject
public java.util.Iterator getFields(java.lang.String name)
throws CatalogException
getFields in interface CatalogObject
public java.util.Iterator getFields()
throws CatalogException
public int getIndexAttribute(java.lang.String tableName,
java.lang.String attribute)
throws CatalogException
getIndexAttribute in interface CatalogObjectpublic void toXML(java.lang.String XMLfileName)
toXML in interface CatalogObjectpublic java.lang.String getName()
getName in interface CatalogObjectpublic int getNbDepConstraints()
public java.lang.String[][] DepConstraintToSQL()
throws CatalogException,
AjaxTypeException
public java.lang.String toTable()
throws ajax.catalog.TransfException
public java.lang.String toFile()
public java.util.List getKey()
public java.util.List getKey(java.lang.String name)
throws CatalogException
getKey in interface CatalogObjectCatalogObject
public java.util.Iterator getExplainingTables()
throws CatalogException
public boolean hasExplainingTables()
throws CatalogException
public java.util.Iterator getExplainingAttributes(java.lang.String tableName)
throws CatalogException
tableName - the name of the desired explaining table
public java.util.Iterator getExplainingAttributes()
throws CatalogException
public java.util.Iterator getKeys()
public boolean hasKey(java.lang.String keyName)
keyName - the attribute's namepublic java.lang.String toString()
toString in class java.lang.Object
public void setWeaveSchema(java.io.BufferedWriter bfw)
throws CatalogException,
java.io.IOException
bfw - a BufferedWriter object where to write
the generated sch code
public void setWeaveRunTimePolicy(java.io.BufferedWriter bfw)
throws CatalogException,
java.io.IOException
bfw - a BufferedWriter object where to write
the generated rtp code
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||