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

com.marklogic.flux.impl.Command 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.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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy