Class TextTableQueryResultWriter

    • Field Detail

      • FORMAT

        public static final QueryResultFormat FORMAT
        The format to identify this writer with name "TEXT", mime type "text/plain" and file extension "txt".
    • Constructor Detail

      • TextTableQueryResultWriter

        public TextTableQueryResultWriter​(java.io.OutputStream theOut,
                                          @Nonnull
                                          Options theOptions)
    • Method Detail

      • isShowSummary

        public boolean isShowSummary()
        Returns true if the number of results and query execution time will be shown at the end.
        Returns:
        a boolean indicating if the number of results will be shown
      • setShowSummary

        public void setShowSummary​(boolean mShowSummary)
        Turns on showing query summary at the end of results which includes the number of results and query execution time.
        Parameters:
        mShowSummary - A boolean indicating if the number of results and query execution time should be displayed
      • getStartTime

        public long getStartTime()
        Gets the current start time that will be used to display query execution time if summary is shown at the end.
        Returns:
        the start time for query execution
      • setStartTime

        public void setStartTime​(long theStartTime)
        Sets the current start time that will be used to display query execution time if summary is shown at the end.
        Parameters:
        theStartTime - the current start time of the query execution in the summary.