com.splunk
Class MultiResultsReader<T extends ResultsReader>

java.lang.Object
  extended by com.splunk.MultiResultsReader<T>
All Implemented Interfaces:
java.lang.Iterable<SearchResults>
Direct Known Subclasses:
MultiResultsReaderJson, MultiResultsReaderXml

public class MultiResultsReader<T extends ResultsReader>
extends java.lang.Object

The 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.


Method Summary
 void close()
          Closes the reader and releases resources.
 java.util.Iterator<SearchResults> iterator()
          Returns an iterator over the sets of results from this reader.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

iterator

public final java.util.Iterator<SearchResults> iterator()
Returns an iterator over the sets of results from this reader.

Specified by:
iterator in interface java.lang.Iterable<SearchResults>
Returns:
An iterator.

close

public final void close()
                 throws java.io.IOException
Closes the reader and releases resources.

Throws:
java.io.IOException