public abstract class ResultsReader extends Object implements SearchResults
ResultsReader
class is a base class for the streaming readers
for Splunk search results. This class should not be used to retrieve preview
results for an export search.Modifier and Type | Field and Description |
---|---|
protected InputStream |
inputStream |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the reader and returns resources.
|
Event |
getNextEvent()
Returns the next event in the event stream.
|
Iterator<Event> |
iterator()
Returns an iterator over the events from this reader.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFields, isPreview
forEach, spliterator
protected final InputStream inputStream
public void close() throws IOException
IOException
- On IO exception.public final Event getNextEvent() throws IOException
Event
class to interpret multi-item values.IOException
- On IO exception.Copyright © 2022 Splunk, Inc.. All rights reserved.