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

com.marklogic.flux.api.GenericFilesExporter 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.function.Consumer;

/**
 * Read documents from MarkLogic and write them to a local filesystem, HDFS, or S3.
 */
public interface GenericFilesExporter extends Executor {

    interface WriteGenericFilesOptions {
        WriteGenericFilesOptions path(String path);

        WriteGenericFilesOptions compressionType(CompressionType compressionType);

        WriteGenericFilesOptions prettyPrint(boolean value);

        WriteGenericFilesOptions encoding(String encoding);

        WriteGenericFilesOptions zipFileCount(int zipFileCount);

        WriteGenericFilesOptions s3AddCredentials();

        WriteGenericFilesOptions s3AccessKeyId(String accessKeyId);

        WriteGenericFilesOptions s3SecretAccessKey(String secretAccessKey);

        WriteGenericFilesOptions s3Endpoint(String endpoint);
    }

    GenericFilesExporter from(Consumer> consumer);

    GenericFilesExporter to(Consumer consumer);

    GenericFilesExporter to(String path);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy