public class SparkCommandBuilderImpl extends InvocationCallbackBase<CommandResponse> implements SparkCommandBuilder
| Modifier and Type | Method and Description |
|---|---|
SparkCommandBuilder |
arguments(String arguments)
Specify the spark specific command line options which are passed on to spark-submit.
|
BaseCommand |
build() |
SparkCommandBuilder |
clusterLabel(String clusterLabel)
Specify cluster label corresponding to the cluster to be
used to run this command.
|
SparkCommandBuilder |
cmdLine(String cmdLine)
For power users, this function provides ability to provide the
spark-submit command line directly.
|
protected BaseCommand.COMMAND_TYPE |
getCommandType() |
protected com.fasterxml.jackson.databind.node.ObjectNode |
getEntity() |
protected InvokeArguments<CommandResponse> |
getInvokeArguments() |
SparkCommandBuilder |
language(String language)
Specify the language of the program, Scala, SQL, Command, R, or Python.
|
SparkCommandBuilder |
name(String commandName)
Specify a name to the command.
|
SparkCommandBuilder |
program(String program)
Set the Scala, Python, SQL or R code snippet for the SparkCommand.
|
SparkCommandBuilder |
sql(String sql)
Specify SQL query to be executed by command.
|
SparkCommandBuilder |
tags(String[] queryTags)
Specify a list of tags for the command so that it is easily identifiable and searchable
from the commands list in the Commands History.
|
SparkCommandBuilder |
userProgramArguments(String userProgramArguments)
Specify the arguments that the user program takes in.
|
getArgumentsInvocation, invoke, raw, withCallbackclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetArgumentsInvocation, invoke, raw, withCallbackpublic SparkCommandBuilder program(String program)
SparkCommandBuilderSparkCommandBuilder.sql(String) method.program in interface SparkCommandBuilderpublic SparkCommandBuilder cmdLine(String cmdLine)
SparkCommandBuildercmdLine in interface SparkCommandBuilderpublic SparkCommandBuilder language(String language)
SparkCommandBuilderSparkCommandBuilder.program(String) is used.language in interface SparkCommandBuilderpublic SparkCommandBuilder sql(String sql)
SparkCommandBuildersql in interface SparkCommandBuilderpublic SparkCommandBuilder userProgramArguments(String userProgramArguments)
SparkCommandBuilderuserProgramArguments in interface SparkCommandBuilderpublic SparkCommandBuilder arguments(String arguments)
SparkCommandBuilderarguments in interface SparkCommandBuilderpublic SparkCommandBuilder clusterLabel(String clusterLabel)
SparkCommandBuilderclusterLabel in interface SparkCommandBuilderpublic SparkCommandBuilder name(String commandName)
SparkCommandBuildername in interface SparkCommandBuilderpublic SparkCommandBuilder tags(String[] queryTags)
SparkCommandBuildertags in interface SparkCommandBuilderprotected com.fasterxml.jackson.databind.node.ObjectNode getEntity()
protected BaseCommand.COMMAND_TYPE getCommandType()
protected InvokeArguments<CommandResponse> getInvokeArguments()
getInvokeArguments in class InvocationCallbackBase<CommandResponse>public BaseCommand build()
Copyright © 2020. All rights reserved.