@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; }
OperatorID operatorID = OperatorID.fromJobVertexID(jobVertexID); streamConfig.setOperatorID(operatorID); TaskStateSnapshot stateSnapshot = new TaskStateSnapshot();
/** * Constructs a new job vertex and assigns it with the given name. * * @param name The name of the new job vertex. * @param id The id of the job vertex. */ public JobVertex(String name, JobVertexID id) { this.name = name == null ? DEFAULT_NAME : name; this.id = id == null ? new JobVertexID() : id; // the id lists must have the same size this.operatorIDs.add(OperatorID.fromJobVertexID(this.id)); this.operatorIdsAlternatives.add(null); }
public InputFormatVertex(String name, @Nullable OperatorID sourceOperatorId) { super(name); this.sourceOperatorId = (sourceOperatorId != null) ? sourceOperatorId : OperatorID.fromJobVertexID(this.getID()); }
/** * Constructs a new job vertex and assigns it with the given name. * * @param name The name of the new job vertex. * @param id The id of the job vertex. */ public JobVertex(String name, JobVertexID id) { this.name = name == null ? DEFAULT_NAME : name; this.id = id == null ? new JobVertexID() : id; // the id lists must have the same size this.operatorIDs.add(OperatorID.fromJobVertexID(this.id)); this.operatorIdsAlternatives.add(null); }
public OperatorMetricGroup getOrAddOperator(String name) { return getOrAddOperator(OperatorID.fromJobVertexID(vertexId), name); }
/** * Constructs a new job vertex and assigns it with the given name. * * @param name The name of the new job vertex. * @param id The id of the job vertex. */ public JobVertex(String name, JobVertexID id) { this.name = name == null ? DEFAULT_NAME : name; this.id = id == null ? new JobVertexID() : id; // the id lists must have the same size this.operatorIDs.add(OperatorID.fromJobVertexID(this.id)); this.operatorIdsAlternatives.add(null); }
/** * Constructs a new job vertex and assigns it with the given name. * * @param name The name of the new job vertex. * @param id The id of the job vertex. */ public JobVertex(String name, JobVertexID id) { this.name = name == null ? DEFAULT_NAME : name; this.id = id == null ? new JobVertexID() : id; // the id lists must have the same size this.operatorIDs.add(OperatorID.fromJobVertexID(this.id)); this.operatorIdsAlternatives.add(null); }
public OutputFormatVertex(String name, @Nullable OperatorID sinkOperatorId) { super(name); this.sinkOperatorId = (sinkOperatorId != null) ? sinkOperatorId : OperatorID.fromJobVertexID(this.getID()); }
public OperatorMetricGroup getOrAddOperator(String name) { return getOrAddOperator(OperatorID.fromJobVertexID(vertexId), name); }
public OperatorMetricGroup addOperator(String name) { return addOperator(OperatorID.fromJobVertexID(vertexId), name); }
OperatorID operatorID = OperatorID.fromJobVertexID(getEnvironment().getJobVertexId());