Difference between revisions of "MetadataFilter"

From ZENBU documentation wiki
Jump to: navigation, search
(Parameters)
(Parameters)
Line 20: Line 20:
  
 
There are two ways to perform metadata filtering. Either by using filter_logic or by specifying specific metadata.
 
There are two ways to perform metadata filtering. Either by using filter_logic or by specifying specific metadata.
* '''<filter>some logic</filter>''' : use multi-keyword filter logic [[Metadata_searching]] to perform the filtering process.  
+
* '''<filter>some logic</filter>''' : use [[Metadata_searching | multi-keyword filter logic]] to perform the filtering process.  
  
 
If using specific metadata then the test is performed on the presence of any these in the metadata set, effectively performing an OR operation.  
 
If using specific metadata then the test is performed on the presence of any these in the metadata set, effectively performing an OR operation.  

Revision as of 20:21, 27 November 2012

Data Stream Processing > Processing Modules > Metadata manipulation

Description

The MetadataFilter processing module filters Feature objects on the primary stream based on their metadata.

Parameters

  • <mdata_mode> : defines which set of Metadata perform filter check on. possible values are :
    • feature : only checks the metadata directly attached to the feature.
    • featuresource : only checks the metadata from the FeatureSource of the features.
    • experiment : only checks the metadata from the Experiments expressed by the features. All Experiments are processed.
    • all : all metadata from all the above are checked.
  • <inverse> : inverses the filtering process. if set to true then objects not matching the metadata filters are passed through. if set to false then object with correctly match the metadata filers are allowed to pass through.

There are two ways to perform metadata filtering. Either by using filter_logic or by specifying specific metadata.

If using specific metadata then the test is performed on the presence of any these in the metadata set, effectively performing an OR operation.

  • <mdata type="some-type">some-value</mdata> : specifies a specific metadata of matching type and value to be transfered if present in the side-stream feature.
  • <mdata type="some-type"></mdata> : specifies that any metadata matching the type will be transfered.
  • <mdata>some-value</mdata> : specifies that any metadata matching the value will be transfered.

Examples

TODO ...