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

com.marklogic.flux.api.JdbcExporter 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 rows via Optic from MarkLogic and write them to a table using
 * Spark's JDBC support.
 */
public interface JdbcExporter extends Executor {

    interface WriteRowsOptions extends JdbcOptions {
        WriteRowsOptions table(String table);

        WriteRowsOptions saveMode(SaveMode saveMode);
    }

    JdbcExporter from(Consumer consumer);

    JdbcExporter from(String opticQuery);

    JdbcExporter to(Consumer consumer);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy