Class MarkLogicRecordWriter<KEYOUT,​VALUEOUT>

    • Field Detail

      • LOG

        public static final org.apache.commons.logging.Log LOG
      • conf

        protected org.apache.hadoop.conf.Configuration conf
      • txnSize

        protected int txnSize
      • hostName

        protected String hostName
    • Constructor Detail

      • MarkLogicRecordWriter

        public MarkLogicRecordWriter​(org.apache.hadoop.conf.Configuration conf,
                                     String hostName)
    • Method Detail

      • getSession

        protected com.marklogic.xcc.Session getSession()
                                                throws IOException
        Get the session for this writer. One writer only maintains one session.
        Returns:
        Session for this writer.
        Throws:
        IOException
      • commitIfNecessary

        protected void commitIfNecessary()
                                  throws com.marklogic.xcc.exceptions.RequestException
        Throws:
        com.marklogic.xcc.exceptions.RequestException
      • getTransactionSize

        public int getTransactionSize​(org.apache.hadoop.conf.Configuration conf)