@ThreadSafe @PublicApi public class LoadTableCommand extends AbstractTableCommand
mClient, mConf
ASYNC_OPTION, DEFAULT_ACTIVE_JOBS, mActiveJobs, mSubmittedJobAttempts
mFileSystem, mFsContext
Constructor and Description |
---|
LoadTableCommand(AlluxioConfiguration conf,
TableMasterClient client,
FileSystemContext fsContext)
Constructs a new instance to load table into Alluxio space.
|
Modifier and Type | Method and Description |
---|---|
String |
getCommandName()
Gets the command name as input from the shell.
|
String |
getDescription() |
org.apache.commons.cli.Options |
getOptions() |
String |
getUsage() |
int |
run(org.apache.commons.cli.CommandLine cl)
Runs the command.
|
void |
validateArgs(org.apache.commons.cli.CommandLine cl)
Checks if the arguments are valid or throw InvalidArgumentException.
|
drain, getCompletedCmdCount, getCompletedCount, getFailedCmdCount, getFailedCount, getFailedFiles, postProcessing, processFailures, submit, waitForCmd, waitJob
processHeader, runPlainPath, runWildCardCmd
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getSubCommands, hasSubCommand, parseAndValidateArgs
public LoadTableCommand(AlluxioConfiguration conf, TableMasterClient client, FileSystemContext fsContext)
conf
- the alluxio configurationclient
- the client interface which can be used to make RPCs against the table masterfsContext
- the filesystem of Alluxiopublic String getUsage()
public String getCommandName()
Command
getCommandName
in interface Command
getCommandName
in class AbstractTableCommand
public String getDescription()
public org.apache.commons.cli.Options getOptions()
Options
of the commandpublic void validateArgs(org.apache.commons.cli.CommandLine cl) throws InvalidArgumentException
Command
validateArgs
in interface Command
validateArgs
in class AbstractTableCommand
cl
- the parsed command line for the argumentsInvalidArgumentException
- when arguments are not validpublic int run(org.apache.commons.cli.CommandLine cl) throws AlluxioException, IOException
Command
run
in interface Command
run
in class AbstractTableCommand
cl
- the parsed command line for the argumentsAlluxioException
IOException
Copyright © 2023. All Rights Reserved.