public class MergeCommandHandler extends CommandHandler
Modifier and Type | Method and Description |
---|---|
List |
createDefaultMergeFiles(File[] files)
Create the default merge options, which is one event from the file per merged output event.
|
List |
createMergeFiles(List lines)
Create a list of @see MergeFileParameters objects from the
input file specified with -f.
|
void |
execute()
Execute the merge command with current arguments.
|
void |
parse(String[] argv)
Parse the command line options for the merge command using apache CLI.
|
void |
printUsage(boolean doExit)
Print usage and (optionally) exit the program.
|
getDescription, getName, getOptions
public void parse(String[] argv) throws Exception
parse
in class CommandHandler
argv
- The input arguments for the merge command.Exception
public void execute() throws Exception
execute
in class CommandHandler
Exception
public List createMergeFiles(List lines) throws IOException
lines
- File lines read from input file list (-f option).IOException
public List createDefaultMergeFiles(File[] files) throws IOException
files
- An array of input File objects.IOException
public void printUsage(boolean doExit)
printUsage
in class CommandHandler
doExit
- Whether or not to exit after printing usage.Jas4pp 1.5 © Java Analysis Studio for Particle Physics