public static class SplunkConnectionImpl.CountingSearchResultListener extends Object implements SearchResultListener
SearchResultListener
interface that just counts the results.| Modifier and Type | Field and Description |
|---|---|
(package private) String[] |
fieldNames |
(package private) boolean |
print |
(package private) int |
resultCount |
| Constructor and Description |
|---|
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) |
String[] fieldNames
int resultCount
final 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–2016 The Apache Software Foundation. All rights reserved.