Class MetacardCreator
java.lang.Object
ddf.catalog.transformer.common.tika.MetacardCreator
Creates
Metacards from Tika Metadata objects.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ddf.catalog.data.MetacardcreateMetacard(org.apache.tika.metadata.Metadata metadata, String id, String metadataXml, ddf.catalog.data.MetacardType metacardType) static ddf.catalog.data.MetacardcreateMetacard(org.apache.tika.metadata.Metadata metadata, String id, String metadataXml, ddf.catalog.data.MetacardType metacardType, boolean useMetadataTitle)
-
Field Details
-
COMPRESSION_TYPE_METADATA_KEY
- See Also:
-
DURATION_METDATA_KEY
- See Also:
-
ALTERNATE_MAPPING_OVERRIDE_FILE_KEY
- See Also:
-
-
Method Details
-
createMetacard
public static ddf.catalog.data.Metacard createMetacard(org.apache.tika.metadata.Metadata metadata, String id, String metadataXml, ddf.catalog.data.MetacardType metacardType) - Parameters:
metadata- theMetadataobject containing the metadata relevant to the metacard, must not be nullid- the value for theMetacard.IDattribute that should be set in the generatedMetacard, may be nullmetadataXml- the XML for theMetacard.METADATAattribute that should be set in the generatedMetacard, may be nullmetacardType- TheMetacardTypefor the created metacard- Returns:
- a new
Metacard
-
createMetacard
public static ddf.catalog.data.Metacard createMetacard(org.apache.tika.metadata.Metadata metadata, String id, String metadataXml, ddf.catalog.data.MetacardType metacardType, boolean useMetadataTitle) - Parameters:
metadata- theMetadataobject containing the metadata relevant to the metacard, must not be nullid- the value for theMetacard.IDattribute that should be set in the generatedMetacard, may be nullmetadataXml- the XML for theMetacard.METADATAattribute that should be set in the generatedMetacard, may be nullmetacardType- TheMetacardTypefor the created metacarduseMetadataTitle- If true then use title from the metadata as the metacard title- Returns:
- a new
Metacard
-