public class MultiResultsReader<T extends ResultsReader> extends Object
MultiResultsReader
class represents a streaming reader
for Splunk search results. Using <T extends ResultsReader>
allows
specialization of T
in subclasses of MultiResultsReader
, such
as MultiResultsReaderXml
and MultiResultsReaderJson
.Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the reader and releases resources.
|
protected T |
getNextElement()
Get the next element.
|
Iterator<SearchResults> |
iterator()
Returns an iterator over the sets of results from this reader.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public final Iterator<SearchResults> iterator()
iterator
in interface Iterable<SearchResults>
public final void close() throws IOException
IOException
- If reader is not closed.protected final T getNextElement()
Copyright © 2022 Splunk, Inc.. All rights reserved.