Skip to end of metadata
Go to start of metadata

Author

Boris Capitanu

Creation date

06/06/2011

Firing policy

all

Package

org.seasr.meandre.components.tools.tuples

DESCRIPTION

This component looks up the key for a tuple in the ignore file, if specified, and ignores the tuple (passes it on as is) if it's found there, otherwise it looks it up in the cache file and if an attribute is found in cache it is associated with the tuple, otherwise, if a cache miss occurred the tuple is pushed out on the 'tuple_not_cached' port for processing by other means.

INPUTS

Name

Description

Example

tuple
The tuple
TYPE: org.seasr.datatypes.BasicDataTypes.Strings

 

meta_tuple
The meta data for the tuple(s)
TYPE: org.seasr.datatypes.BasicDataTypes.Strings

 

OUTPUTS

Name

Description

Example

not_cached_meta
The meta for the tuple that was not found in cache, and not ignored
TYPE: org.seasr.datatypes.BasicDataTypes.Strings

 

tuple
The tuple augmented with the attribute found in the cache
TYPE: org.seasr.datatypes.BasicDataTypes.Strings

 

not_cached_tuple
The tuple that was not found in cache, and not ignored
TYPE: org.seasr.datatypes.BasicDataTypes.Strings

 

meta_tuple
The meta data for the augmented tuple (same as input, plus the new attribute)
TYPE: org.seasr.datatypes.BasicDataTypes.Strings

 

error
This port is used to output any unhandled errors encountered during the execution of this component

 

PROPERTIES

Name

Description

Default value

attribute_cache_file
The cache file where to look up attribute values
_debug_level
Controls the verbosity of debug messages printed by the component during execution.
Possible values are: off, severe, warning, info, config, fine, finer, finest, all
Append ',mirror' to any of the values above to mirror that output to the server logs.
info
key
The attribute from the incoming tuple that will be used as key for lookup in the cache and ignore file
attribute_name
The attribute to be added to the input tuple that will hold the value from the cache
ignore_keys_file
Optional: The file that stores the keys that should be ignored (for which the tuple will be passed through as-is)
_ignore_errors
Set to 'true' to ignore all unhandled exceptions and prevent the flow from being terminated. Setting this property to 'false' will result in the flow being terminated in the event an unhandled exception is thrown during the execution of this component
false
Write a comment…