Class ContentOutputFormat<VALUEOUT>

    • Constructor Detail

      • ContentOutputFormat

        public ContentOutputFormat()
    • Method Detail

      • getSourceMap

        protected Map<String,​com.marklogic.xcc.ContentSource> getSourceMap​(boolean fastLoad,
                                                                                 org.apache.hadoop.mapreduce.TaskAttemptContext context)
                                                                          throws IOException
        Throws:
        IOException
      • initialize

        protected boolean initialize​(com.marklogic.xcc.Session session,
                                     boolean restrictHosts,
                                     boolean getForwardHeader)
                              throws IOException,
                                     com.marklogic.xcc.exceptions.RequestException
        Initialize initial server host name, assignment policy and fastload.
        Parameters:
        session -
        Returns:
        true if restrict_hosts is to be enabled; false otherwise
        Throws:
        IOException
        com.marklogic.xcc.exceptions.RequestException
      • queryForestInfo

        protected LinkedMapWritable queryForestInfo​(com.marklogic.xcc.ContentSource cs)
                                             throws IOException
        must be attempting or doing fastload when this method is called. result format of the query varies based on policy bucket:(fid, host, updateAllow)* range:(fid, host, fragmentCount)* statistical: (fid, host, fragmentCount)* legacy: (fid, host)*
        Parameters:
        cs -
        Returns:
        a forest-info map
        Throws:
        IOException