本文整理了Java中org.apache.flink.runtime.execution.Environment.getJobVertexId()
方法的一些代码示例,展示了Environment.getJobVertexId()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Environment.getJobVertexId()
方法的具体详情如下:
包路径:org.apache.flink.runtime.execution.Environment
类名称:Environment
方法名:getJobVertexId
[英]Gets the ID of the JobVertex for which this task executes a parallel subtask.
[中]获取此任务为其执行并行子任务的JobVertex的ID。
代码示例来源:origin: apache/flink
@Override
public boolean triggerCheckpoint(final CheckpointMetaData checkpointMetaData, final CheckpointOptions checkpointOptions) {
final TaskStateSnapshot checkpointStateHandles = new TaskStateSnapshot();
checkpointStateHandles.putSubtaskStateByOperatorID(
OperatorID.fromJobVertexID(getEnvironment().getJobVertexId()),
new OperatorSubtaskState());
getEnvironment().acknowledgeCheckpoint(
checkpointMetaData.getCheckpointId(),
new CheckpointMetrics(),
checkpointStateHandles);
triggerCheckpointLatch.countDown();
return true;
}
代码示例来源:origin: com.alibaba.blink/flink-runtime
public void releaseReference(String name, int superstep, BatchTask<?, ?> referenceHolder) {
BroadcastVariableKey key = new BroadcastVariableKey(referenceHolder.getEnvironment().getJobVertexId(), name, superstep);
releaseReference(key, referenceHolder);
}
代码示例来源:origin: org.apache.flink/flink-runtime_2.11
public void releaseReference(String name, int superstep, BatchTask<?, ?> referenceHolder) {
BroadcastVariableKey key = new BroadcastVariableKey(referenceHolder.getEnvironment().getJobVertexId(), name, superstep);
releaseReference(key, referenceHolder);
}
代码示例来源:origin: org.apache.flink/flink-runtime_2.10
public void releaseReference(String name, int superstep, BatchTask<?, ?> referenceHolder) {
BroadcastVariableKey key = new BroadcastVariableKey(referenceHolder.getEnvironment().getJobVertexId(), name, superstep);
releaseReference(key, referenceHolder);
}
代码示例来源:origin: org.apache.flink/flink-runtime
public void releaseReference(String name, int superstep, BatchTask<?, ?> referenceHolder) {
BroadcastVariableKey key = new BroadcastVariableKey(referenceHolder.getEnvironment().getJobVertexId(), name, superstep);
releaseReference(key, referenceHolder);
}
代码示例来源:origin: com.alibaba.blink/flink-runtime
OperatorID operatorID = OperatorID.fromJobVertexID(getEnvironment().getJobVertexId());
代码示例来源:origin: org.apache.flink/flink-runtime
final BroadcastVariableKey key = new BroadcastVariableKey(holder.getEnvironment().getJobVertexId(), name, superstep);
代码示例来源:origin: org.apache.flink/flink-runtime_2.10
public <T> BroadcastVariableMaterialization<T, ?> materializeBroadcastVariable(String name, int superstep, BatchTask<?, ?> holder,
MutableReader<?> reader, TypeSerializerFactory<T> serializerFactory) throws IOException
final BroadcastVariableKey key = new BroadcastVariableKey(holder.getEnvironment().getJobVertexId(), name, superstep);
代码示例来源:origin: com.alibaba.blink/flink-runtime
final BroadcastVariableKey key = new BroadcastVariableKey(holder.getEnvironment().getJobVertexId(), name, superstep);
代码示例来源:origin: org.apache.flink/flink-runtime_2.11
final BroadcastVariableKey key = new BroadcastVariableKey(holder.getEnvironment().getJobVertexId(), name, superstep);
内容来源于网络,如有侵权,请联系作者删除!