Class SplunkConnectionImpl.CountingSearchResultListener

    • Field Summary

      Modifier and Type Field Description
      (package private) java.lang.String[] fieldNames  
      (package private) boolean print  
      (package private) int resultCount  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getResultCount()  
      boolean processSearchResult​(java.lang.String[] values)
      Handles a record from a search result.
      void setFieldNames​(java.lang.String[] fieldNames)  
      • Methods inherited from class java.lang.Object

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

      • fieldNames

        java.lang.String[] fieldNames
      • resultCount

        int resultCount
      • print

        final boolean print
    • Constructor Detail

      • CountingSearchResultListener

        public CountingSearchResultListener​(boolean print)
    • Method Detail

      • processSearchResult

        public boolean processSearchResult​(java.lang.String[] values)
        Description copied from interface: SearchResultListener
        Handles a record from a search result.
        Specified by:
        processSearchResult in interface SearchResultListener
        values - Values of the record
        true to continue parsing, false otherwise
      • getResultCount

        public int getResultCount()