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

com.marklogic.flux.api.JdbcImporter 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 rows using
 * Spark's JDBC support
 * and write JSON or XML documents to MarkLogic.
 */
public interface JdbcImporter extends Executor {

    interface ReadJdbcOptions extends JdbcOptions {
        ReadJdbcOptions query(String query);

        ReadJdbcOptions groupBy(String groupBy);

        ReadJdbcOptions aggregateColumns(String newColumnName, String... columns);
    }

    JdbcImporter from(Consumer consumer);

    JdbcImporter to(Consumer consumer);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy