Class LETOROutputFormat

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void printHeader​(java.io.PrintWriter pw, FeaturedResultSet rs)  
      void printResults​(java.io.PrintWriter pw, SearchRequest q, java.lang.String method, java.lang.String iteration, int numberOfResults)
      Outputs the results of query q to PrintWriter pw, described by the method, iteration, and the specified limit on the number of results (0 means no limit).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • seenQueries

        protected java.util.HashSet<java.lang.String> seenQueries
      • test

        protected boolean test
      • display_scores

        protected boolean display_scores
      • feature_docids

        protected boolean feature_docids
      • display_docids

        protected boolean display_docids
      • display_docnos

        protected boolean display_docnos
      • fOffset

        protected int fOffset
    • Constructor Detail

      • LETOROutputFormat

        public LETOROutputFormat​(Index index)
    • Method Detail

      • printResults

        public void printResults​(java.io.PrintWriter pw,
                                 SearchRequest q,
                                 java.lang.String method,
                                 java.lang.String iteration,
                                 int numberOfResults)
                          throws java.io.IOException
        Description copied from interface: OutputFormat
        Outputs the results of query q to PrintWriter pw, described by the method, iteration, and the specified limit on the number of results (0 means no limit).
        Specified by:
        printResults in interface OutputFormat
        Throws:
        java.io.IOException
      • printHeader

        protected void printHeader​(java.io.PrintWriter pw,
                                   FeaturedResultSet rs)