T
- type of the metric data.public final class MetricCollectionBarrierVertex<T> extends IRVertex
Constructor and Description |
---|
MetricCollectionBarrierVertex()
Constructor for dynamic optimization vertex.
|
Modifier and Type | Method and Description |
---|---|
void |
accumulateMetric(String key,
List<T> values)
Method for accumulating metrics in the vertex.
|
MetricCollectionBarrierVertex |
getClone() |
DAG<IRVertex,IREdge> |
getDAGSnapshot()
Access the DAG snapshot when triggering dynamic optimization.
|
Map<String,List<T>> |
getMetricData()
Method for retrieving metrics from the vertex.
|
String |
propertiesToJSON() |
void |
setDAGSnapshot(DAG<IRVertex,IREdge> dag)
This is to set the DAG snapshot at the end of the DataSkewCompositePass.
|
copyExecutionPropertiesTo, getExecutionProperties, getProperty, irVertexPropertiesToString, setProperty
getId, getNumericId
public MetricCollectionBarrierVertex()
public MetricCollectionBarrierVertex getClone()
public void setDAGSnapshot(DAG<IRVertex,IREdge> dag)
dag
- DAG to set on the vertex.public DAG<IRVertex,IREdge> getDAGSnapshot()
public void accumulateMetric(String key, List<T> values)
key
- metric key, e.g. ID of the partition.values
- metric values, e.g. the block size information of the partition data.public Map<String,List<T>> getMetricData()
public String propertiesToJSON()
propertiesToJSON
in class Vertex
Copyright © 2018. All rights reserved.