Interface CustomContent

  • All Superinterfaces:
    org.apache.hadoop.io.Writable
    All Known Implementing Classes:
    ContentWithFileNameWritable, RDFWritable

    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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      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