com.marklogic.flux.api.JdbcImporter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flux-api Show documentation
Show all versions of flux-api Show documentation
Flux API for data movement with MarkLogic
/*
* 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);
}