All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.marklogic.flux.api.WriteStructuredDocumentsOptions Maven / Gradle / Ivy

There is a newer version: 1.1.3
Show newest version
/*
 * Copyright © 2024 MarkLogic Corporation. All Rights Reserved.
 */
package com.marklogic.flux.api;

/**
 * Defines options for writing "structured" documents - i.e. JSON or XML documents created from all the columns in
 * the rows returned by a reader (as opposed to "document" rows where the document is defined by the "content" column).
 */
public interface WriteStructuredDocumentsOptions extends WriteDocumentsOptions {

    WriteStructuredDocumentsOptions jsonRootName(String jsonRootName);

    WriteStructuredDocumentsOptions xmlRootName(String xmlRootName);

    WriteStructuredDocumentsOptions xmlNamespace(String xmlNamespace);

    /**
     * @param value Ignore fields with null values in the data source when writing JSON or XML documents to MarkLogic.
     *              Fields with null values are included by default.
     * @return an instance of these options.
     */
    WriteStructuredDocumentsOptions ignoreNullFields(boolean value);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy