public static class SplunkConnectionImpl.CountingSearchResultListener extends Object implements SearchResultListener
SearchResultListener
interface that just counts the results.| Constructor and Description |
|---|
SplunkConnectionImpl.CountingSearchResultListener(boolean print) |
| Modifier and Type | Method and Description |
|---|---|
int |
getResultCount() |
boolean |
processSearchResult(String[] values)
Handles a record from a search result.
|
void |
setFieldNames(String[] fieldNames) |
public SplunkConnectionImpl.CountingSearchResultListener(boolean print)
public void setFieldNames(String[] fieldNames)
setFieldNames in interface SearchResultListenerpublic boolean processSearchResult(String[] values)
SearchResultListenerprocessSearchResult in interface SearchResultListenervalues - Values of the recordpublic int getResultCount()
Copyright © 2012–2014 The Apache Software Foundation. All rights reserved.