Class ContentWithFileNameWritable<VALUE>

  • Type Parameters:
    VALUE -
    All Implemented Interfaces:
    CustomContent, org.apache.hadoop.io.Writable

    public class ContentWithFileNameWritable<VALUE>
    extends Object
    implements CustomContent
    Custom content that has stored its own file name.
    • Field Detail

      • LOG

        public static final org.apache.commons.logging.Log LOG
    • Constructor Detail

      • ContentWithFileNameWritable

        public ContentWithFileNameWritable()
      • ContentWithFileNameWritable

        public ContentWithFileNameWritable​(VALUE value,
                                           String fileName)
    • Method Detail

      • getValue

        public VALUE getValue()
      • setValue

        public void setValue​(VALUE value)
      • getFileName

        public String getFileName()
      • setFileName

        public void setFileName​(String fileName)
      • getContent

        public com.marklogic.xcc.Content getContent​(org.apache.hadoop.conf.Configuration conf,
                                                    com.marklogic.xcc.ContentCreateOptions options,
                                                    String uri)
        Description copied from interface: CustomContent
        Get the content that is about to inserted.
        Specified by:
        getContent in interface CustomContent
        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
      • readFields

        public void readFields​(DataInput in)
                        throws IOException
        Specified by:
        readFields in interface org.apache.hadoop.io.Writable
        Throws:
        IOException
      • getEncodedURI

        protected String getEncodedURI​(String val)