MarkLogic Connector for Hadoop 1.1-3

com.marklogic.mapreduce
Interface CustomContent

All Superinterfaces:
org.apache.hadoop.io.Writable

public interface CustomContent
extends org.apache.hadoop.io.Writable

This is a Writable Interface for custom content. Use this class with ContentOutputFormat and your own Reader to load documents into MarkLogic Server with finer grained control over permissions, properties, collections, and content quality than is provided by the per-job configuration properties such as mapreduce.marklogic.output.content.permission.


Method Summary
 com.marklogic.xcc.Content getContent(org.apache.hadoop.conf.Configuration conf, com.marklogic.xcc.ContentCreateOptions options, String uri)
          Get the content that is about to inserted.
 
Methods inherited from interface org.apache.hadoop.io.Writable
readFields, write
 

Method Detail

getContent

com.marklogic.xcc.Content getContent(org.apache.hadoop.conf.Configuration conf,
                                     com.marklogic.xcc.ContentCreateOptions options,
                                     String uri)
Get the content that is about to inserted.

Parameters:
conf - job configuration
options - a template for ContentCreateOptions to be used for the content to be created.
uri - URI String of DocumentURI
Returns:
Content

MarkLogic Connector for Hadoop 1.1-3

Copyright © 2013 MarkLogic Corporation. All Rights Reserved.

Complete online documentation for MarkLogic Server, XQuery and related components may be found at developer.marklogic.com