com.marklogic.flux.impl.importdata.AbstractImportFilesCommand 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.impl.importdata;
import com.marklogic.flux.api.Executor;
import com.marklogic.flux.api.FluxException;
import com.marklogic.flux.impl.AbstractCommand;
import org.apache.spark.sql.*;
import java.util.Map;
import java.util.function.Supplier;
/**
* Base class for commands that import files and write to MarkLogic.
*/
public abstract class AbstractImportFilesCommand extends AbstractCommand {
/**
* Subclass must define the format used for reading - e.g. "csv", "marklogic", etc.
*
* @return the name of the Spark data source or connector to pass to the Spark 'format(String)' method
*/
protected abstract String getReadFormat();
protected abstract P getReadParams();
protected abstract Supplier
© 2015 - 2024 Weber Informatics LLC | Privacy Policy