public abstract class AbstractEventStream<T> extends AbstractEventStream
EventStream classes.
It takes an Iterator of sample objects as input and
outputs the events creates by a subclass.| Constructor and Description |
|---|
AbstractEventStream(ObjectStream<T> samples)
Initializes the current instance with a sample
Iterator. |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Iterator<Event> |
createEvents(T sample)
Creates events for the provided sample.
|
boolean |
hasNext()
Checks if there are more training events available.
|
Event |
next()
Returns the next Event object held in this EventStream.
|
removepublic AbstractEventStream(ObjectStream<T> samples)
Iterator.samples - the sample Iterator.protected abstract Iterator<Event> createEvents(T sample)
public final boolean hasNext()
throws IOException
IOExceptionpublic final Event next()
EventStreamCopyright © 2016 The Apache Software Foundation. All rights reserved.