Package org.terrier.applications
Class ShowDocumentCommand
- java.lang.Object
-
- org.terrier.applications.CLITool
-
- org.terrier.applications.CLITool.CLIParsedCLITool
-
- org.terrier.applications.ShowDocumentCommand
-
public class ShowDocumentCommand extends CLITool.CLIParsedCLITool
Utility command to display the contents of a document to stdout, as obtained from the direct index. Instantiated using bin/terrier showdocument- Since:
- 5.1
-
-
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 Constructor Description ShowDocumentCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>
commandaliases()
What short commands aliases should this command respond tojava.lang.String
commandname()
What commandname should this command respond toprotected org.apache.commons.cli.Options
getOptions()
java.lang.String
helpsummary()
Returns a short sentence about what this command is forint
run(org.apache.commons.cli.CommandLine line)
java.lang.String
sourcepackage()
-
Methods inherited from class org.terrier.applications.CLITool.CLIParsedCLITool
getIndexRef, help, run
-
Methods inherited from class org.terrier.applications.CLITool
main, run, run, setConfiguration
-
-
-
-
Method Detail
-
run
public int run(org.apache.commons.cli.CommandLine line) throws java.lang.Exception
- Specified by:
run
in classCLITool.CLIParsedCLITool
- Throws:
java.lang.Exception
-
getOptions
protected org.apache.commons.cli.Options getOptions()
- Overrides:
getOptions
in classCLITool.CLIParsedCLITool
-
commandaliases
public java.util.Set<java.lang.String> commandaliases()
Description copied from class:CLITool
What short commands aliases should this command respond to- Overrides:
commandaliases
in classCLITool
-
commandname
public java.lang.String commandname()
Description copied from class:CLITool
What commandname should this command respond to- Overrides:
commandname
in classCLITool
-
helpsummary
public java.lang.String helpsummary()
Description copied from class:CLITool
Returns a short sentence about what this command is for- Overrides:
helpsummary
in classCLITool
-
sourcepackage
public java.lang.String sourcepackage()
- Overrides:
sourcepackage
in classCLITool
-
-