|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.enterprise.adaptor.examples.MetadataTransformExample
public class MetadataTransformExample
Example transform which will move values from one key to another.
For example the values under key "creator" could be moved to be under the key "author".
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
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
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |