Class 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
    • Constructor Detail

      • ShowDocumentCommand

        public ShowDocumentCommand()
    • Method Detail

      • run

        public int run​(org.apache.commons.cli.CommandLine line)
                throws java.lang.Exception
        Specified by:
        run in class CLITool.CLIParsedCLITool
        Throws:
        java.lang.Exception
      • 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 class CLITool
      • commandname

        public java.lang.String commandname()
        Description copied from class: CLITool
        What commandname should this command respond to
        Overrides:
        commandname in class CLITool
      • helpsummary

        public java.lang.String helpsummary()
        Description copied from class: CLITool
        Returns a short sentence about what this command is for
        Overrides:
        helpsummary in class CLITool
      • sourcepackage

        public java.lang.String sourcepackage()
        Overrides:
        sourcepackage in class CLITool