com.marklogic.flux.impl.Command 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;
import org.apache.spark.sql.SparkSession;
import picocli.CommandLine;
public interface Command {
/**
* @param session the Spark session to use for executing the command
*/
void execute(SparkSession session);
/**
* With picocli, we don't have a JCommander-like facility for validating all the params before the command is
* executed. This allows us to do that.
*
* @param parseResult
*/
void validateCommandLineOptions(CommandLine.ParseResult parseResult);
}