public class CmdLine extends Object
Constructor and Description |
---|
CmdLine(String[] args)
Parse the command line to retrieve at least the necessary parameters
|
Modifier and Type | Method and Description |
---|---|
static SourceType |
fileContains(File file,
String dataName)
Returns the source type if the file contains a query
|
String |
getClusterId()
Gets the cluster Id if the execution mode is EMR
|
String |
getClusterName()
Gets the cluster name is the execution mode is EMR
|
String |
getControllerRAM()
Gets controller RAM passed in the configuration file
|
String |
getData1()
Gets the data retrieval query for source 1
|
String |
getData2()
Gets the data retrieval query for source 2
|
String |
getDataSourceFolder()
Gets the location of source data
|
String |
getDelimiter() |
String |
getExecutorMemory()
Gets executor memory passed in the configuration file
|
String |
getLowerBound()
Gets the lower bound in case of partitioning
|
String |
getNumExecutors()
Gets the number of executors passed in the configuration file
|
String |
getNumPartitions()
Gets the number of partitions passed in the configuration file
|
String |
getOutputDirectory()
Gets location of output directory
|
String |
getPartitionByColumn()
Gets the the partition column name
|
String |
getRunConfigName()
Gets the file name of the configuration file
|
File |
getSource1()
Gets the file where the data retrieval queries can be found
|
File |
getSource2()
Gets the file where the data retrieval queries can be found
|
SourceType |
getType1()
Gets the type of source 1
|
SourceType |
getType2()
Gets the type of source 2
|
String |
getUpperBound()
Gets the upper bound in case of partitioning
|
boolean |
isLocal()
Returns true if the execution mode is local
|
public CmdLine(String[] args)
args
- Input/Output/Query parameterspublic String getDataSourceFolder()
public String getOutputDirectory()
public String getRunConfigName()
public String getData1()
public String getData2()
public File getSource1()
public File getSource2()
public SourceType getType1()
public SourceType getType2()
public boolean isLocal()
public String getClusterId()
public String getClusterName()
public String getNumExecutors()
public String getExecutorMemory()
public String getControllerRAM()
public String getNumPartitions()
public String getPartitionByColumn()
public String getLowerBound()
public String getUpperBound()
public String getDelimiter()
public static SourceType fileContains(File file, String dataName)
file
- File NamedataName
- QueryCopyright © 2023. All rights reserved.