|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FunctionInterface
This is the interface implemented by Function objects.
Method Summary | |
---|---|
void |
debug(java.lang.String aMsg)
If debug is turned on, logs a message to the currently used log. |
BaseConfiguration |
getConfiguration()
Gets the configuration attribute of the FunctionInterface object |
java.lang.Object |
getContext()
Retrieves used defined context. |
Log |
getLog()
Returns the logger object in use by this FC |
java.lang.Object |
getParam(java.lang.String param)
Gets a named parameter in the configuration. |
RSInterface |
getRSInterface()
Returns the current RSInterface object in use by this Function. |
java.awt.Component |
getUI()
Deprecated. |
void |
initialize(java.lang.Object obj)
Called once to initialize the function |
void |
logmsg(java.lang.String msg)
Logs a message to the currently used log |
java.lang.Object |
perform(java.lang.Object obj)
This is the main method of a Function Component. |
java.lang.Object |
querySchema(java.lang.Object source)
This method translates to whatever means a function component has to discover schema for a connection. |
void |
setConfiguration(BaseConfiguration config)
Sets the configuration attribute of the FunctionInterface object |
void |
setContext(java.lang.Object aContext)
Sets the user defined context. |
void |
setLog(Log logger)
Sets the logger object to use in this FC |
void |
setParam(java.lang.String param,
java.lang.Object value)
Sets a named parameter in the configuration. |
void |
setRSInterface(RSInterface rsi)
Sets the RSInterface object for this Function. |
void |
terminate()
The implementation of this method must take care to cleanup any resources which the Function Component has allocated during its operation. |
boolean |
updateSchema(FunctionConfig config)
This method modifies the schema in the provided configuration. |
Method Detail |
---|
void initialize(java.lang.Object obj) throws java.lang.Exception
obj
- this object provides information to the Function Component
needed on initialization
java.lang.Exception
- An exception is thrown if the initialization fails.java.lang.Object perform(java.lang.Object obj) throws java.lang.Exception
obj
- the input to the function
java.lang.Exception
- An exception is thrown if this method fails.void terminate() throws java.lang.Exception
java.lang.Exception
- An exception is thrown if this method fails.java.awt.Component getUI()
BaseConfiguration getConfiguration()
void setConfiguration(BaseConfiguration config)
config
- The new configuration valueboolean updateSchema(FunctionConfig config) throws java.lang.Exception
config
- FunctionConfig
java.lang.Exception
java.lang.Object getParam(java.lang.String param)
param
- the name of the parameter whose value this method returns
void setParam(java.lang.String param, java.lang.Object value)
param
- The new parameter's namevalue
- The new parameter valuevoid logmsg(java.lang.String msg)
msg
- The message appearing in the logvoid setLog(Log logger)
logger
- The log objectLog getLog()
void debug(java.lang.String aMsg)
aMsg
- The debug message appearing in the logjava.lang.Object getContext()
void setContext(java.lang.Object aContext)
aContext
- Stringjava.lang.Object querySchema(java.lang.Object source) throws java.lang.Exception
Each Entry in the Vector returned should contain the following attributes:
Name | Value |
---|---|
name | The name of the column/attribute/field .... |
syntax | The syntax or expected value type |
size | If specified this will give the user a hint as to how long the field may be |
source
- The object on which to discover schema. This may be an Entry
or a string value. Boolean value will tell which schema to
discover: true - InputMapSchema, false - OutputMapSchema. If
not specified the default will be true. Might be a
FunctionConfig object which will be set as the configuration
of this object. Could be an array of objects (i.e. Object[]).
Only the first object of a specific type will be considered,
the rest (if any) will be ignored.
java.lang.Exception
Entry
,
Vector
void setRSInterface(RSInterface rsi)
RSInterface getRSInterface()
com.ibm.di.server.RS.getServer()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |