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

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

/**
 * Read local, HDFS, and S3 Flux archive files and write the documents in each archive to MarkLogic.
 */
public interface ArchiveFilesImporter extends Executor {

    interface ReadArchiveFilesOptions extends ReadFilesOptions {
        ReadArchiveFilesOptions categories(String... categories);

        ReadArchiveFilesOptions partitions(int partitions);

        ReadArchiveFilesOptions encoding(String encoding);
    }

    ArchiveFilesImporter from(Consumer consumer);

    ArchiveFilesImporter from(String... paths);

    /**
     * @since 1.1.0
     */
    ArchiveFilesImporter streaming();

    ArchiveFilesImporter to(Consumer> consumer);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy