Class ParquetBackedPBEventIterator
java.lang.Object
edu.stanford.slac.archiverappliance.plain.parquet.ParquetBackedPBEventIterator
- All Implemented Interfaces:
EventStreamIterator,Closeable,AutoCloseable,Iterator<Event>
An implementation of
EventStreamIterator that reads from a Parquet reader.-
Method Details
-
hasNext
public boolean hasNext()Caches the next event, and returns if it exists. -
close
public void close()Closes the underlyingReaderquietly. This method is useful if you only want to process the first few lines of a larger file. If you do not close the iterator then theReaderremains open. This method can safely be called multiple times.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
next
Returns the next event in the wrappedReader. -
nextEvent
Returns the next line in the wrappedReader.- Returns:
- the next line from the input
- Throws:
NoSuchElementException- if there is no line to return
-