@InterfaceStability.Unstable @InterfaceAudience.Public public final class InputDataInformationEvent extends Event
InputInitializer
implementations to provide the
user payload for individual tasks running as part of the Vertex for which an
Initial Input has been configured.
This event is used by InputInitialziers to configure tasks belonging to a
Vertex. The event may be processed by a @link VertexManagerPlugin
before being sent to tasks.
A InputInitializer
may send Events with or without a
serialized user payload.
Events, after being processed by a VertexManagerPlugin
, must
contain the payload in a serialized form.Modifier and Type | Method and Description |
---|---|
static InputDataInformationEvent |
createWithObjectPayload(int srcIndex,
Object userPayloadDeserialized) |
static InputDataInformationEvent |
createWithSerializedPath(int srcIndex,
String serializedPath) |
static InputDataInformationEvent |
createWithSerializedPayload(int srcIndex,
ByteBuffer userPayload)
Provide a serialized form of the payload
|
Object |
getDeserializedUserPayload() |
String |
getSerializedPath() |
int |
getSourceIndex() |
int |
getTargetIndex() |
ByteBuffer |
getUserPayload() |
void |
setTargetIndex(int target) |
String |
toString() |
public static InputDataInformationEvent createWithSerializedPayload(int srcIndex, ByteBuffer userPayload)
srcIndex
- the src indexuserPayload
- the serialized payloadpublic static InputDataInformationEvent createWithObjectPayload(int srcIndex, Object userPayloadDeserialized)
public static InputDataInformationEvent createWithSerializedPath(int srcIndex, String serializedPath)
public int getSourceIndex()
public int getTargetIndex()
public void setTargetIndex(int target)
public String getSerializedPath()
public ByteBuffer getUserPayload()
public Object getDeserializedUserPayload()
Copyright © 2024 Apache Software Foundation. All rights reserved.