Class ForestInputFormat<VALUE>

  • Type Parameters:
    VALUE - Only ForestDocument is currently supported, but types such as Text or BytesWritable are possible candidates to be added.
    All Implemented Interfaces:
    MarkLogicConstants

    public class ForestInputFormat<VALUE>
    extends org.apache.hadoop.mapreduce.lib.input.FileInputFormat<DocumentURIWithSourceInfo,​VALUE>
    implements MarkLogicConstants
    FileInputFormat subclass for reading documents from a forest using DirectAccess.

    Direct Access is intended primarily for extracting documents in offline or read-only forests, such as forests containing archived data that are part of a Tiered Storage data management strategy.

    This format produces key-value pairs where the key is a DocumentURI and the value is a ForestDocument. The type of ForestDocument depends on the underlying document content type: DOMDocument for XML or text, or BinaryDocument for binaries. Binary documents can be further specialized to RegularBinaryDocument or LargeBinaryDocument, depending on size and the database configuration.