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

com.marklogic.flux.api.CustomImporter 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;

import java.util.Map;
import java.util.function.Consumer;

/**
 * Read data via a custom Spark connector or data source and write JSON or XML documents to MarkLogic.
 */
public interface CustomImporter extends Executor {

    interface CustomReadOptions {
        CustomReadOptions source(String source);

        CustomReadOptions additionalOptions(Map additionalOptions);

        CustomReadOptions s3AddCredentials();

        CustomReadOptions s3AccessKeyId(String accessKeyId);

        CustomReadOptions s3SecretAccessKey(String secretAccessKey);

        CustomReadOptions s3Endpoint(String endpoint);
    }

    CustomImporter from(Consumer consumer);

    CustomImporter to(Consumer consumer);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy