public static class SplunkConnectionImpl.SplunkResultEnumerator extends Object implements Enumerator<Object>
Enumerator that parses
results from a Splunk REST call.
The element type is either String or String[], depending
on the value of source.
| Modifier and Type | Field and Description |
|---|---|
private au.com.bytecode.opencsv.CSVReader |
csvReader |
private Object |
current |
private String[] |
fieldNames |
private int |
source
Where to find the singleton field, or whether to map.
|
private int[] |
sources |
| Constructor and Description |
|---|
SplunkResultEnumerator(InputStream in,
List<String> wantedFields) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Object |
current() |
boolean |
moveNext() |
void |
reset() |
private final au.com.bytecode.opencsv.CSVReader csvReader
private String[] fieldNames
private int[] sources
private Object current
private int source
public SplunkResultEnumerator(InputStream in, List<String> wantedFields)
public Object current()
current in interface Enumerator<Object>public boolean moveNext()
moveNext in interface Enumerator<Object>public void reset()
reset in interface Enumerator<Object>public void close()
close in interface AutoCloseableclose in interface Enumerator<Object>Copyright © 2012–2016 The Apache Software Foundation. All rights reserved.