Class DatabaseContentWriter<VALUE>

  • All Implemented Interfaces:
    ConfigConstants, MarkLogicConstants

    public class DatabaseContentWriter<VALUE>
    extends ContentWriter<VALUE>
    implements ConfigConstants
    MarkLogicRecordWriter that can 1) insert content from Archive to MarkLogic Server 2) copy content from source MarkLogic Server to destination MarkLogic Server
    • Field Detail

      • LOG

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

        protected com.marklogic.xcc.types.XdmValue[][] propertyUris
      • propertyXmlStrings

        protected com.marklogic.xcc.types.XdmValue[][] propertyXmlStrings
      • propertyCounts

        protected int[] propertyCounts
      • isCopyProps

        protected boolean isCopyProps
      • isCopyPerms

        protected boolean isCopyPerms
    • Constructor Detail

      • DatabaseContentWriter

        public DatabaseContentWriter​(org.apache.hadoop.conf.Configuration conf,
                                     Map<String,​com.marklogic.xcc.ContentSource> hostSourceMap,
                                     boolean fastLoad)
      • DatabaseContentWriter

        public DatabaseContentWriter​(org.apache.hadoop.conf.Configuration conf,
                                     Map<String,​com.marklogic.xcc.ContentSource> hostSourceMap,
                                     boolean fastLoad,
                                     AssignmentManager am)
    • Method Detail

      • newContentCreateOptions

        protected static com.marklogic.xcc.ContentCreateOptions newContentCreateOptions​(DocumentMetadata meta,
                                                                                        com.marklogic.xcc.ContentCreateOptions options,
                                                                                        boolean isCopyColls,
                                                                                        boolean isCopyQuality,
                                                                                        boolean isCopyMeta,
                                                                                        boolean isCopyPerms,
                                                                                        long effectiveVersion)
        fetch the options information from conf and metadata, set to the field "options"
      • setBatchProperties

        protected boolean setBatchProperties​(int i,
                                             com.marklogic.xcc.Session s)
      • setDocumentProperties

        protected static boolean setDocumentProperties​(String uri,
                                                       String xmlString,
                                                       String permString,
                                                       String collString,
                                                       String quality,
                                                       Map<String,​String> meta,
                                                       com.marklogic.xcc.Session s)
        Parameters:
        uri - uri of the document whose property is to be set
        xmlString - property in xml string
        permString -
        collString -
        quality -
        meta -
        s -
        Returns: