getMetadata
Retrieves Java transformation metadata at runtime. The getMetadata method retrieves metadata that you save with the storeMetadata method, such as a filter condition that the optimizer passes to the Java transformation in the pushFilter function.
Use the following syntax:
getMetadata (String key);
The following table describes the parameters:
Parameter | Parameter Type | Datatype | Description |
---|
key | Input | String | Identifies the metadata. The getMetadata method uses the key to determine which metadata to retrieve. |
You can add the getMetadata method to the Java code on the following code entry tabs:
- •Helper
- •On Input
- •At End
- •Optimizer Interfaces
- •Functions
You can configure the getMetadata method to retrieve filter conditions for push-into optimization. The getMetadata method can retrieve each filter condition that you store from the optimizer.
// Retrieve a filter condition
String mydata = getMetadata ("FilterKey");