public class Edge
extends java.lang.Object
Constructor and Description |
---|
Edge() |
Edge(java.lang.String te) |
Edge(java.lang.String taskEdge,
IFunction function) |
Edge(java.lang.String name,
java.lang.String operation) |
Edge(java.lang.String name,
java.lang.String operation,
IFunction function) |
Edge(java.lang.String name,
java.lang.String operation,
MessageType dataType) |
Edge(java.lang.String name,
java.lang.String operation,
MessageType dataType,
IFunction function) |
Edge(java.lang.String name,
java.lang.String operation,
MessageType dataType,
MessageType keyType) |
Edge(java.lang.String name,
java.lang.String operation,
MessageType dataType,
MessageType keyType,
IFunction function) |
Edge(java.lang.String name,
java.lang.String operation,
MessageType dataType,
MessageType keyType,
IFunction function,
TaskPartitioner part) |
Modifier and Type | Method and Description |
---|---|
void |
addProperties(java.util.Map<java.lang.String,java.lang.Object> props)
Add the properties to the edge
|
void |
addProperty(java.lang.String key,
java.lang.Object value)
Add a property to the edge
|
MessageType |
getDataType()
To get the datatype
|
EdgeID |
getEdgeID() |
int |
getEdgeIndex() |
IFunction |
getFunction()
To get the IFunction object.
|
MessageType |
getKeyType()
To get the keytype
|
MessageSchema |
getMessageSchema() |
java.lang.String |
getName()
To get the name of the task edge
|
int |
getNumberOfEdges() |
java.lang.String |
getOperation()
To get the operation name
|
TaskPartitioner |
getPartitioner()
Get the partitioner
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties() |
java.lang.Object |
getProperty(java.lang.String key)
Get the property with a specific key
|
java.lang.String |
getTargetEdge()
Get the group name, if the group is set, multiple edges can belong to a same group
|
boolean |
isKeyed() |
void |
setDataType(MessageType dataType) |
void |
setEdgeIndex(int edgeIndex) |
void |
setFunction(IFunction function) |
void |
setKeyed(boolean keyed) |
void |
setKeyType(MessageType keyType) |
void |
setMessageSchema(MessageSchema messageSchema) |
void |
setName(java.lang.String name) |
void |
setNumberOfEdges(int numberOfEdges) |
void |
setOperation(java.lang.String operation) |
void |
setPartitioner(TaskPartitioner partitioner) |
void |
setProperties(java.util.Map<java.lang.String,java.lang.Object> properties) |
void |
setTargetEdge(java.lang.String targetEdge) |
public Edge()
public Edge(java.lang.String te)
public Edge(java.lang.String name, java.lang.String operation)
public Edge(java.lang.String taskEdge, IFunction function)
public Edge(java.lang.String name, java.lang.String operation, MessageType dataType)
public Edge(java.lang.String name, java.lang.String operation, IFunction function)
public Edge(java.lang.String name, java.lang.String operation, MessageType dataType, MessageType keyType)
public Edge(java.lang.String name, java.lang.String operation, MessageType dataType, MessageType keyType, IFunction function)
public Edge(java.lang.String name, java.lang.String operation, MessageType dataType, IFunction function)
public Edge(java.lang.String name, java.lang.String operation, MessageType dataType, MessageType keyType, IFunction function, TaskPartitioner part)
public void setMessageSchema(MessageSchema messageSchema)
public MessageSchema getMessageSchema()
public java.lang.String getName()
public IFunction getFunction()
public java.lang.String getOperation()
public MessageType getDataType()
public MessageType getKeyType()
public boolean isKeyed()
public void addProperty(java.lang.String key, java.lang.Object value)
key
- key of the propertyvalue
- valuepublic java.lang.Object getProperty(java.lang.String key)
key
- name of the propertypublic void addProperties(java.util.Map<java.lang.String,java.lang.Object> props)
props
- propertiespublic TaskPartitioner getPartitioner()
public void setName(java.lang.String name)
public void setFunction(IFunction function)
public void setPartitioner(TaskPartitioner partitioner)
public void setOperation(java.lang.String operation)
public void setDataType(MessageType dataType)
public void setKeyType(MessageType keyType)
public void setKeyed(boolean keyed)
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
public void setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
public java.lang.String getTargetEdge()
public void setTargetEdge(java.lang.String targetEdge)
public void setEdgeIndex(int edgeIndex)
public void setNumberOfEdges(int numberOfEdges)
public int getEdgeIndex()
public int getNumberOfEdges()
public EdgeID getEdgeID()