com.informatica.powercenter.sdk.mapfwk.core
Class InputSet

java.lang.Object
  extended by com.informatica.powercenter.sdk.mapfwk.core.InputSet

public class InputSet
extends java.lang.Object

Class that contains a rowset and the corresponding propagation context. This is used as an input to a transformation.


Constructor Summary
InputSet(RowSet rowSetObj)
          Initialize the InputSet object from a RowSet object.
InputSet(RowSet rowSetObj, PortLinkContext linkContext)
          Initialize the InputSet object for a RowSet object along with a PortLinkContext.
InputSet(RowSet rowSetObj, PortPropagationContext contextObj)
          Initialize the InputSet object for a RowSet object along with a PortPropagationContext.
InputSet(RowSet rsObj, PortPropagationContext contextObj, PortLinkContext linkContextObj)
          Initialize the InputSet object for a RowSet object along with a PortPropagationContext and PortLinkContext.
InputSet(Source sourceObj)
          Initialize the InputSet object from a Source object.
InputSet(Source sourceObj, PortPropagationContext contextObj)
          Initialize the InputSet object from a Source object and a propagation context.
InputSet(Source sourceObj, PortPropagationContext contextObj, PortLinkContext linkContextObj)
          Initialize the InputSet object from a Source object and a propagation context.
 
Method Summary
 RowSet getInRowSet()
           
 java.util.Vector getOutputField()
           
 RowSet getOutRowSet()
           
 java.util.Vector getPortDef()
           
 PortPropagationContext getPropContext()
          Get the propagation context
 Source getSource()
          Get the source object
 boolean isFromSource()
          Is the InputSet created from Source object
 boolean isMaster()
           
 void resolveFieldNameConflict(java.lang.String name, java.lang.String prefix)
          Update the field name if there are conflicts
 void setGroupBy(java.lang.String[] grpBy)
          This function takes an array of field name to be set to groupBy in the Output Field
 void setMaster(boolean master)
           
 void setOutRowSet(RowSet inRowSet)
           
 void setRankPort(java.lang.String portName)
          This method is to set the rankPort of the RankTransformation
 void setSorterField(java.lang.String name)
          This method sets the sorter field for the Sorter Transformation.
 void setSorterField(java.lang.String name, boolean ascending)
          This method sets the sorter field and sorting direction for the Sorter Transformation.
 void setSource(Source src)
          Set the Source object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputSet

public InputSet(Source sourceObj)
Initialize the InputSet object from a Source object. In this case the ALL the incoming fields are propagated

Parameters:
sourceObj - Source Object

InputSet

public InputSet(Source sourceObj,
                PortPropagationContext contextObj)
Initialize the InputSet object from a Source object and a propagation context.

Parameters:
sourceObj - Source Object
contextObj - PortPropagationContext object

InputSet

public InputSet(Source sourceObj,
                PortPropagationContext contextObj,
                PortLinkContext linkContextObj)
Initialize the InputSet object from a Source object and a propagation context.

Parameters:
sourceObj - Source Object
contextObj - PortPropagationContext object
linkContextObj - PortLinkContext object

InputSet

public InputSet(RowSet rowSetObj)
Initialize the InputSet object from a RowSet object. In this case the ALL the incoming fields are propagated

Parameters:
rowSetObj - RowSet Object

InputSet

public InputSet(RowSet rowSetObj,
                PortPropagationContext contextObj)
Initialize the InputSet object for a RowSet object along with a PortPropagationContext.

Parameters:
rowSetObj - RowSet object
contextObj - PortPropagationContext

InputSet

public InputSet(RowSet rowSetObj,
                PortLinkContext linkContext)
Initialize the InputSet object for a RowSet object along with a PortLinkContext.

Parameters:
rowSetObj - RowSet object
linkContext - PortLinkContext object

InputSet

public InputSet(RowSet rsObj,
                PortPropagationContext contextObj,
                PortLinkContext linkContextObj)
Initialize the InputSet object for a RowSet object along with a PortPropagationContext and PortLinkContext.

Parameters:
rsObj - RowSet object
contextObj - PortPropagationContext object
linkContextObj - PortLinkContext object
Method Detail

isFromSource

public boolean isFromSource()
Is the InputSet created from Source object

Returns:
boolean true/false

getSource

public Source getSource()
Get the source object

Returns:
Source object

setSource

public void setSource(Source src)
Set the Source object

Parameters:
src - Source object

getInRowSet

public RowSet getInRowSet()
Returns:
Returns the m_objInRowSet.

getOutRowSet

public RowSet getOutRowSet()
Returns:
Returns the m_objOutRowSet.

setOutRowSet

public void setOutRowSet(RowSet inRowSet)
Parameters:
inRowSet -

getPortDef

public java.util.Vector getPortDef()
Returns:
Returns the m_objPortDef.

setGroupBy

public void setGroupBy(java.lang.String[] grpBy)
This function takes an array of field name to be set to groupBy in the Output Field

Parameters:
grpBy -
See Also:
Field

setRankPort

public void setRankPort(java.lang.String portName)
This method is to set the rankPort of the RankTransformation

Parameters:
portName -

setSorterField

public void setSorterField(java.lang.String name)
This method sets the sorter field for the Sorter Transformation. It uses ascending direction as the default sort direction.

Parameters:
name -

setSorterField

public void setSorterField(java.lang.String name,
                           boolean ascending)
This method sets the sorter field and sorting direction for the Sorter Transformation.

Parameters:
name -
ascending -

getOutputField

public java.util.Vector getOutputField()
Returns:
Returns the m_objOutputField.

isMaster

public boolean isMaster()
Returns:
Returns the detail.

setMaster

public void setMaster(boolean master)
Parameters:
master - set the master

getPropContext

public PortPropagationContext getPropContext()
Get the propagation context

Returns:
Returns the m_objPropContext.

resolveFieldNameConflict

public void resolveFieldNameConflict(java.lang.String name,
                                     java.lang.String prefix)
Update the field name if there are conflicts

Parameters:
name - name of the field
prefix - prefix string to be used in case of conflict