public class MetadataTransformExample extends Object implements DocumentTransform
For example the values under key "creator" could be moved to be under the key "author".
Modifier and Type | Method and Description |
---|---|
static MetadataTransformExample |
create(Map<String,String> cfg)
Makes transform from config with "src" and "dest" keys.
|
String |
toString() |
void |
transform(Metadata metadata,
Map<String,String> params)
Any changes to
metadata and params will be
passed on to subsequent transforms. |
public static MetadataTransformExample create(Map<String,String> cfg)
public void transform(Metadata metadata, Map<String,String> params)
DocumentTransform
metadata
and params
will be
passed on to subsequent transforms. This method must be thread-safe.transform
in interface DocumentTransform