Package org.terrier.applications
Class AbstractQuerying.AbstractQueryingCommand
- java.lang.Object
-
- org.terrier.applications.CLITool
-
- org.terrier.applications.CLITool.CLIParsedCLITool
-
- org.terrier.applications.AbstractQuerying.AbstractQueryingCommand
-
- Direct Known Subclasses:
InteractiveQuerying.Command
,TRECQuerying.Command
- Enclosing class:
- AbstractQuerying
public abstract static class AbstractQuerying.AbstractQueryingCommand extends CLITool.CLIParsedCLITool
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.terrier.applications.CLITool
CLITool.CLIParsedCLITool, CLITool.HelpAliasCLITool, CLITool.HelpCLITool
-
-
Field Summary
-
Fields inherited from class org.terrier.applications.CLITool
PLATFORM_MODULE, POPULAR_COMMANDS
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractQueryingCommand(java.lang.Class<? extends AbstractQuerying> _baseQuerying)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected org.apache.commons.cli.Options
getOptions()
int
run(org.apache.commons.cli.CommandLine line)
abstract int
run(org.apache.commons.cli.CommandLine line, AbstractQuerying querying)
java.lang.String
sourcepackage()
-
Methods inherited from class org.terrier.applications.CLITool.CLIParsedCLITool
getIndexRef, help, run
-
Methods inherited from class org.terrier.applications.CLITool
commandaliases, commandname, helpsummary, main, run, run, setConfiguration
-
-
-
-
Constructor Detail
-
AbstractQueryingCommand
protected AbstractQueryingCommand(java.lang.Class<? extends AbstractQuerying> _baseQuerying)
-
-
Method Detail
-
getOptions
protected org.apache.commons.cli.Options getOptions()
- Overrides:
getOptions
in classCLITool.CLIParsedCLITool
-
run
public abstract int run(org.apache.commons.cli.CommandLine line, AbstractQuerying querying) throws java.lang.Exception
- Throws:
java.lang.Exception
-
run
public final int run(org.apache.commons.cli.CommandLine line) throws java.lang.Exception
- Specified by:
run
in classCLITool.CLIParsedCLITool
- Throws:
java.lang.Exception
-
sourcepackage
public java.lang.String sourcepackage()
- Overrides:
sourcepackage
in classCLITool
-
-