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

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

There is a newer version: 1.0.0.ea1
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 rows via Optic from MarkLogic and write them to delimited text files on a local filesystem, HDFS, or S3
 * using Spark's CSV support.
 */
public interface DelimitedFilesExporter extends Executor {

    DelimitedFilesExporter from(Consumer consumer);

    DelimitedFilesExporter from(String opticQuery);

    DelimitedFilesExporter to(Consumer consumer);

    DelimitedFilesExporter to(String path);

    interface WriteDelimitedFilesOptions extends WriteFilesOptions {
        WriteDelimitedFilesOptions encoding(String encoding);

        WriteDelimitedFilesOptions additionalOptions(Map options);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy