ajax.catalog
Class Merging
java.lang.Object
|
+--ajax.catalog.Transformation
|
+--ajax.catalog.Merging
- All Implemented Interfaces:
- CatalogObject
- public class Merging
- extends Transformation
Fields inherited from class ajax.catalog.Transformation |
CLUST, DBTransferStr, dirExec, dirFiles, dirFunctions, embeddedOutput, endEvaluateHeader, evaluateHeader, evaluateTail, exceptionOutput, FROM_FILE, FROM_TABLE, generatedCodeType, ifTail, importIOException, importList, importRunnableTransf, importSqlException, importSqlResultSet, importWrapperException, importWrapperManager, inputType, JAVA_CODE, MAPP, MATCH, MERG, newLine, outerOutput, outputType, SQL_CODE, tail, TO_FILE, TO_TABLE, transfType, VIEW, wrapperInitialization |
Method Summary |
void |
init(java.lang.String name,
java.util.LinkedList output,
java.util.List from,
Expression algo,
java.util.LinkedList let,
Expression where)
Fills in the components of the merging transformation |
protected void |
setExceptionOutput()
Defines the output associated to the exception table for the case
of a Merging Transformation. |
void |
split()
Splits this transformation into transformations that can be implemented entirely in Java
or entirely in SQL
IMPLEMENT THIS |
java.lang.String |
toHtml()
Converts the merging into an Html read-able object. |
void |
toJavaBody(java.io.Writer outStream,
Table[] matTable,
java.lang.String spaces)
Generates code for executing the body of the transformation |
void |
toJavaFromInput(java.io.Writer outStream)
Generates code for reading the input of the transformation from a table |
java.lang.String |
toString()
Converts the merging into a human read-able object. |
void |
toXML(java.lang.String XMLfileName)
Converts the transformation into an XML document |
Methods inherited from class ajax.catalog.Transformation |
addAsList, addEmbeddedQuery, closeFile, closeOutputFiles, closeOutputJdbc, createOutputFiles, createOutputTables, declareTransfer, doOuterJoinInSQL, dump, dumpQuery, exceptionsToJava, fromToSQL, getAllOutputNames, getExceptionsLet, getExceptionTable, getFields, getFieldType, getFrom, getIndex, getIndexAttribute, getInputNames, getInputTable, getKey, getKeyAs, getLet, getMatTable, getName, getOutput, getOutput, getOutputException, getOutputNames, getOutputSize, getOutputTable, getTable, getTransfType, getWhere, hasNullConstraint, initialize, isClustering, isFromTable, isLetOptimizableDE, isLetToSQL, isMapping, isMatching, isMerging, isToSQL, isToTable, isTransformation, isView, KeyExceptionToJava, letToJava, load, main, openFile, outerOutputIter, selectToJava, selectToSQL, selectToSQLToTable, setFromFile, setFromTable, setName, setOuterOutput, setToFile, setToJava, setToSQL, setToTable, setWeaveOutputsSchemas, setWeaveRunTimePolicies, toJava, toJavaBody, toJavaQuery, toSQL, toTableQuery, updateAuxiliaryFunctions, whereToJava, whereToSQL, writeCollection, writeHtmlCollection, writeTailClass |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
jdbcWrapperCIdStr
public static final java.lang.String jdbcWrapperCIdStr
- Generated code
fileWrapperCIdStr
public static final java.lang.String fileWrapperCIdStr
endWhileLetStr
public static final java.lang.String endWhileLetStr
endFirstIfStr
public static final java.lang.String endFirstIfStr
endSecondIfStr
public static final java.lang.String endSecondIfStr
closeWrapperCIdStr
public static final java.lang.String closeWrapperCIdStr
Merging
public Merging()
init
public void init(java.lang.String name,
java.util.LinkedList output,
java.util.List from,
Expression algo,
java.util.LinkedList let,
Expression where)
throws CatalogException,
AjaxTypeException
- Fills in the components of the merging transformation
- Overrides:
init
in class Transformation
setExceptionOutput
protected void setExceptionOutput()
throws CatalogException,
AjaxTypeException
- Defines the output associated to the exception table for the case
of a Merging Transformation. In this case we just consider the
clusterId key field of the input transformation and the exceptionInfo
field as being part of the schema of the exception table.
- Overrides:
setExceptionOutput
in class Transformation
toJavaFromInput
public void toJavaFromInput(java.io.Writer outStream)
throws CatalogException,
java.io.IOException,
ExpressionException,
AjaxTypeException
- Generates code for reading the input of the transformation from a table
- Overrides:
toJavaFromInput
in class Transformation
toJavaBody
public void toJavaBody(java.io.Writer outStream,
Table[] matTable,
java.lang.String spaces)
throws CatalogException,
java.io.IOException,
ExpressionException,
AjaxTypeException
- Generates code for executing the body of the transformation
split
public void split()
- Splits this transformation into transformations that can be implemented entirely in Java
or entirely in SQL
IMPLEMENT THIS
toXML
public void toXML(java.lang.String XMLfileName)
- Converts the transformation into an XML document
- Overrides:
toXML
in class Transformation
toString
public java.lang.String toString()
- Converts the merging into a human read-able object.
- Overrides:
toString
in class Transformation
toHtml
public java.lang.String toHtml()
- Converts the merging into an Html read-able object.
- Overrides:
toHtml
in class Transformation