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

com.marklogic.flux.api.RdfFilesExporter 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 triples from MarkLogic and write them to a local filesystem, HDFS, or S3.
 */
public interface RdfFilesExporter extends Executor {

    interface ReadTriplesDocumentsOptions {

        ReadTriplesDocumentsOptions graphs(String... graphs);

        ReadTriplesDocumentsOptions stringQuery(String stringQuery);

        ReadTriplesDocumentsOptions uris(String... uris);

        ReadTriplesDocumentsOptions query(String query);

        ReadTriplesDocumentsOptions options(String options);

        ReadTriplesDocumentsOptions collections(String... collections);

        ReadTriplesDocumentsOptions directory(String directory);

        ReadTriplesDocumentsOptions baseIri(String baseIri);

        ReadTriplesDocumentsOptions batchSize(int batchSize);

        ReadTriplesDocumentsOptions partitionsPerForest(int partitionsPerForest);

        ReadTriplesDocumentsOptions logProgress(int interval);

        /**
         * Read documents at multiple points in time, as opposed to using a consistent snapshot.
         *
         * @since 1.1.2
         */
        ReadTriplesDocumentsOptions noSnapshot();
    }

    interface WriteRdfFilesOptions extends WriteFilesOptions {
        WriteRdfFilesOptions format(String format);

        WriteRdfFilesOptions graphOverride(String graphOverride);

        WriteRdfFilesOptions gzip();
    }

    RdfFilesExporter from(Consumer consumer);

    RdfFilesExporter to(Consumer consumer);

    RdfFilesExporter to(String path);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy