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

com.marklogic.flux.api.JsonLinesFilesExporter 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 rows via Optic from MarkLogic and write them to JSON Lines files on a local filesystem, HDFS, or S3 using
 * Spark's JSON support.
 */
public interface JsonLinesFilesExporter extends Executor {

    JsonLinesFilesExporter from(Consumer consumer);

    JsonLinesFilesExporter from(String opticQuery);

    JsonLinesFilesExporter to(Consumer consumer);

    JsonLinesFilesExporter to(String path);

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

        WriteJsonLinesFilesOptions additionalOptions(Map options);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy