Class GreedyTikaField
- java.lang.Object
-
- it.unimi.di.big.mg4j.document.tika.TikaField
-
- it.unimi.di.big.mg4j.document.tika.GreedyTikaField
-
- All Implemented Interfaces:
Serializable
public class GreedyTikaField extends TikaField
The set of all Tika metadata represented as a single field inside MG4J.When using an
AutoDetectDocumentFactory
or any other factory in which metadata fields are user-definable or otherwise variable, it is impossible to provide a static listing of all available fields, as they depend on the actual factory used to parse the document. In this case, an instance of this class is used to return some useful data to the caller.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GreedyTikaField(String tikaName)
-
-
-
Field Detail
-
NAME
public static String NAME
-
-
Constructor Detail
-
GreedyTikaField
public GreedyTikaField(String tikaName)
-
-
Method Detail
-
contentFromMetadata
public String contentFromMetadata(org.apache.tika.metadata.Metadata metadata)
Description copied from class:TikaField
Gets the content of this Tika field from the given metadata.- Overrides:
contentFromMetadata
in classTikaField
- Parameters:
metadata
- the metadata.- Returns:
- the content of this Tika field.
-
-