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, getOptionspublic void parse(String[] argv) throws Exception
parse in class CommandHandlerargv - The input arguments for the merge command.Exceptionpublic void execute()
throws Exception
execute in class CommandHandlerExceptionpublic List createMergeFiles(List lines) throws IOException
lines - File lines read from input file list (-f option).IOExceptionpublic List createDefaultMergeFiles(File[] files) throws IOException
files - An array of input File objects.IOExceptionpublic void printUsage(boolean doExit)
printUsage in class CommandHandlerdoExit - Whether or not to exit after printing usage.Jas4pp 1.5 © Java Analysis Studio for Particle Physics