public interface MetadataTransform
Implementations should also typically have a static factory method with a
single Map<String, String>
argument for creating instances based on
configuration.
Modifier and Type | Interface and Description |
---|---|
static class |
MetadataTransform.HistoricalWrapper
Versions prior to 4.1.1 used class named "DocumentTransform".
|
static class |
MetadataTransform.TransmissionDecision
Transforms can cancel sending doc, or cancel sending its contents.
|
Modifier and Type | Field and Description |
---|---|
static String |
KEY_CONTENT_TYPE |
static String |
KEY_CRAWL_ONCE |
static String |
KEY_DISPLAY_URL |
static String |
KEY_DOC_ID |
static String |
KEY_LAST_MODIFIED_MILLIS_UTC |
static String |
KEY_LOCK |
static String |
KEY_TRANSMISSION_DECISION |
Modifier and Type | Method and Description |
---|---|
void |
transform(Metadata metadata,
Map<String,String> params)
Any changes to
metadata and params will be
passed on to subsequent transforms. |
static final String KEY_DOC_ID
static final String KEY_DISPLAY_URL
static final String KEY_CONTENT_TYPE
static final String KEY_CRAWL_ONCE
static final String KEY_LOCK
static final String KEY_LAST_MODIFIED_MILLIS_UTC
static final String KEY_TRANSMISSION_DECISION