Class TimeSpanLimitEventStream
- java.lang.Object
-
- org.epics.archiverappliance.common.mergededup.TimeSpanLimitEventStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterable<Event>
,EventStream
,RemotableOverRaw
public class TimeSpanLimitEventStream extends Object implements EventStream, RemotableOverRaw
An EventStream that wraps another event stream but limits the data to samples greater than or equal to a specified start time and less than or equal to a specified end time. Used for enforcing partition granularities.- Author:
- mshankar
-
-
Constructor Summary
Constructors Constructor Description TimeSpanLimitEventStream(EventStream srcStream, long startEpoch, long endEpoch)
TimeSpanLimitEventStream(EventStream srcStream, Timestamp startTime, Timestamp endTime)
-
Method Summary
Modifier and Type Method Description void
close()
RemotableEventStreamDesc
getDescription()
Iterator<Event>
iterator()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
TimeSpanLimitEventStream
public TimeSpanLimitEventStream(EventStream srcStream, Timestamp startTime, Timestamp endTime)
-
TimeSpanLimitEventStream
public TimeSpanLimitEventStream(EventStream srcStream, long startEpoch, long endEpoch)
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getDescription
public RemotableEventStreamDesc getDescription()
- Specified by:
getDescription
in interfaceEventStream
- Specified by:
getDescription
in interfaceRemotableOverRaw
-
-