|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.informatica.powercenter.sdk.mapfwk.core.Table com.informatica.powercenter.sdk.mapfwk.core.Transformation com.informatica.powercenter.sdk.mapfwk.core.SorterTransformation
public class SorterTransformation
The class SorterTransformation
implements a Sorter
Transformation. This class extends Transformation
Sorter Transformation is used to sort the input based on the sort port. There can be more than one sort port and the user has to specify the sort direction as ascending or descending for every sorter port. When more than one port is specified the PowerCentre sorts each port sequentially. The order of port is the order specified in the input set. In the TransformationProperties of sorter transformation the user can specify the Sorter Cache Size. For better preformance the Sorter Cache size should be less than the available ram. Case Senstive property determines whether PowerCentre considers case while Sorting.
For Further details see Transformation Guide.
The code snippet for the SorterTransformation is
//create a Sorter Transformation using the constructor given below: Mapping mapping = ...; // mapping to which the transform should be added InputSet inputSetObj = ...; // the InputSet object String[] sorterPort = ...; // the ports on which the sorting is to be done boolean[] ascending = ...; // ascending or descending sort TransformationProperties props = ...; // properties Vector vTransformField = ...; // collection of TransformField objects SorterTransformation sorterTrans = new SorterTransformation( "SorterTrans", "SorterTrans", "This is sorter transformation", "SorterTrans", mapping, inputSetObj, sorterPort, ascending, props, vTransformField); //apply the transformation OutputSet outputSet = sorterTrans.apply(); //get the first rowset as Sorter always returns a RowSet RowSet outRowSet = (RowSet)outputSet.getRowSets().get(0);
Field Summary |
---|
Fields inherited from class com.informatica.powercenter.sdk.mapfwk.core.Transformation |
---|
m_templateID, m_templateName, m_transformFieldAttr, sessionTransformInst |
Fields inherited from class com.informatica.powercenter.sdk.mapfwk.core.Table |
---|
m_bReusable, m_readOnly |
Constructor Summary | |
---|---|
SorterTransformation()
Default constructor |
|
SorterTransformation(java.lang.String name,
java.lang.String busName,
java.lang.String desc,
java.lang.String instName)
Initialize the object with name, business name, description and instance name |
|
SorterTransformation(java.lang.String name,
java.lang.String busName,
java.lang.String desc,
java.lang.String instName,
Mapping mapping,
InputSet inputSetObj,
java.lang.String[] sorterPort,
boolean[] ascending,
TransformationProperties properties,
java.util.Vector vTransformField)
|
Method Summary | |
---|---|
OutputSet |
apply()
Apply the Transformation. |
static boolean |
ifExist(java.util.Vector transformFields,
java.lang.String fieldName)
This method checks if a particular fieldName exists in the vector of transform fields |
Methods inherited from class com.informatica.powercenter.sdk.mapfwk.core.Transformation |
---|
add, addInitProp, defaultDuplicateNameRemovalSchema, genOutputSet, getGroupSet, getInitProps, getMapping, getOutFields, getOutputSet, getProperties, getSessionTransformInstanceKeySet, getSessionTransformInstanceProperty, getTemplateID, getTemplateName, getTransContext, getTransformationFieldAttr, getTransformationType, getTransformGroup, setGroupSet, setGroupSet, setMapping, setOutFields, setOutputSet, setReusable, setSessionTransformInstanceProperty, setTemplateIDAndName, setTransContext, setTransformationFieldAttr, setTransformationType, setTransformGroup, standardizeString |
Methods inherited from class com.informatica.powercenter.sdk.mapfwk.core.Table |
---|
addField, addMetaExtension, getBusinessName, getDescription, getField, getFields, getInstanceName, getMetaExtensions, getName, getReferencedField, isReadOnly, isReusable, removeField, removeMetaExtension, setBusinessName, setDescription, setFields, setInstanceName, setMetaExtensions, setMetaExtensionValue, setName, setReadOnly |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SorterTransformation()
public SorterTransformation(java.lang.String name, java.lang.String busName, java.lang.String desc, java.lang.String instName)
name
- name of the tablebusName
- business namedesc
- descriptioninstName
- instance namepublic SorterTransformation(java.lang.String name, java.lang.String busName, java.lang.String desc, java.lang.String instName, Mapping mapping, InputSet inputSetObj, java.lang.String[] sorterPort, boolean[] ascending, TransformationProperties properties, java.util.Vector vTransformField) throws InvalidTransformationException
InvalidTransformationException
Method Detail |
---|
public static boolean ifExist(java.util.Vector transformFields, java.lang.String fieldName)
transformFields
- fieldName
-
public OutputSet apply() throws InvalidTransformationException
InvalidTransformationException
- exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |