Package org.apache.storm.daemon.logviewer.handler

## Class LogviewerLogSearchHandler.Matched

- java.lang.Object
- - org.apache.storm.daemon.logviewer.handler.LogviewerLogSearchHandler.Matched

- All Implemented Interfaces:
    `net.minidev.json.JSONAware`
  Enclosing class:
    LogviewerLogSearchHandler

      public static class LogviewerLogSearchHandler.Matched
      extends Object
      implements net.minidev.json.JSONAware

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `Matched​(int fileOffset, String searchString, List<Map<String,​Object>> matches, int openedFiles)` | Constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `int` | `getFileOffset()` |
    `List<Map<String,​Object>>` | `getMatches()` |
    `String` | `getSearchString()` |
    `String` | `toJSONString()` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Matched

          public Matched​(int fileOffset,
                         String searchString,
                         List<Map<String,​Object>> matches,
                         int openedFiles)

      Constructor.
      Parameters:
        `fileOffset` - offset (index) of the files
        `searchString` - search string
        `matches` - map representing matched search result
        `openedFiles` - number of files scanned, used for metrics only

  - ### Method Detail

    - #### getFileOffset

          public int getFileOffset()

    - #### getSearchString

          public String getSearchString()

    - #### getMatches

          public List<Map<String,​Object>> getMatches()

    - #### toJSONString

          public String toJSONString()

      Specified by:
        `toJSONString` in interface `net.minidev.json.JSONAware`