public class MultiEvent extends Object implements IResource, Iterable<Event>
COPY_ALL, COPY_CONTENT, COPY_PROPERTIES, COPY_SEGMENTATION, COPY_SEGMENTED_CONTENT, CREATE_EMPTY| Constructor and Description |
|---|
MultiEvent()
Creates a new empty MultiEvent object.
|
MultiEvent(List<Event> events)
Creates a new MultiEvent object with a list of given events.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEvent(Event event)
Adds an event to this object.
|
void |
addEvent(Event event,
int index)
Inserts an event in this object at the specified position.
|
<A extends IAnnotation> |
getAnnotation(Class<A> annotationType)
Gets the annotation object for a given class for this resource.
|
Annotations |
getAnnotations() |
String |
getId()
Gets the identifier of the resource.
|
Map<String,Property> |
getProperties() |
boolean |
isPropagateAsSingleEvent()
Do we send this
Event by itself or does the Pipeline break the individual Events and end them
singly. |
Iterator<Event> |
iterator()
Creates an iterator for the events in this resource.
|
void |
setId(String id)
Sets the identifier of this resource.
|
void |
setPropagateAsSingleEvent(boolean propagateAsSingleEvent)
Set Propagate As Single Event flag.
|
int |
size()
Returns the number of events in this object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopy, getProperty, getPropertyNames, hasProperty, propertyIterator, removeProperty, setPropertyannotationIterator, clear, copy, getAnnotationsTypesAsSet, hasAnnotation, hasAnnotations, remove, setAnnotationgetSkeleton, setSkeletonforEach, spliteratorpublic String getId()
IResourcepublic void setId(String id)
IResourcesetId in interface IResourceid - the new identifier value.IResource.getId()public void addEvent(Event event)
event - the event to add.public void addEvent(Event event, int index)
event - the event to insert.index - index at which the event is to be inserted.public <A extends IAnnotation> A getAnnotation(Class<A> annotationType)
IWithAnnotationsgetAnnotation in interface IWithAnnotationspublic void setPropagateAsSingleEvent(boolean propagateAsSingleEvent)
propagateAsSingleEvent - true if we want to propagate as single event.public boolean isPropagateAsSingleEvent()
Event by itself or does the Pipeline break the individual Events and end them
singly. Default is false - we send each Event singly.public int size()
public Map<String,Property> getProperties()
getProperties in interface IWithPropertiesMap of properties for the implementer of interfacepublic Annotations getAnnotations()
getAnnotations in interface IWithAnnotationsAnnotations for the implementer of interfaceCopyright © 2022. All rights reserved.