@Override public OperatorID getOperatorID() { return new OperatorID(); } }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()){ return false; } LatencyMarker that = (LatencyMarker) o; if (markedTime != that.markedTime) { return false; } if (!operatorId.equals(that.operatorId)) { return false; } return subtaskIndex == that.subtaskIndex; }
public StreamingRuntimeContext(AbstractStreamOperator<?> operator, Environment env, Map<String, Accumulator<?, ?>> accumulators) { super(env.getTaskInfo(), env.getUserClassLoader(), operator.getExecutionConfig(), accumulators, env.getDistributedCacheEntries(), operator.getMetricGroup()); this.operator = operator; this.taskEnvironment = env; this.streamConfig = new StreamConfig(env.getTaskConfiguration()); this.operatorUniqueID = operator.getOperatorID().toString(); }
target.write(TAG_LATENCY_MARKER); target.writeLong(value.asLatencyMarker().getMarkedTime()); target.writeLong(value.asLatencyMarker().getOperatorId().getLowerPart()); target.writeLong(value.asLatencyMarker().getOperatorId().getUpperPart()); target.writeInt(value.asLatencyMarker().getSubtaskIndex());
@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; }
public void setOperatorID(OperatorID operatorID) { this.config.setBytes(OPERATOR_ID, operatorID.getBytes()); }
dos.writeLong(operatorState.getOperatorID().getLowerPart()); dos.writeLong(operatorState.getOperatorID().getUpperPart());
OperatorID operatorID = OperatorID.fromJobVertexID(jobVertexID); streamConfig.setOperatorID(operatorID); TaskStateSnapshot stateSnapshot = new TaskStateSnapshot();
public void setOperatorID(OperatorID operatorID) { this.config.setBytes(OPERATOR_ID, operatorID.getBytes()); }
public AbstractStreamOperatorTestHarness( StreamOperator<OUT> operator, int maxParallelism, int parallelism, int subtaskIndex) throws Exception { this( operator, maxParallelism, parallelism, subtaskIndex, new OperatorID()); }
dos.writeLong(operatorState.getOperatorID().getLowerPart()); dos.writeLong(operatorState.getOperatorID().getUpperPart());
/** * 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); }
@Override public void serialize(OperatorID value, JsonGenerator gen, SerializerProvider provider) throws IOException { gen.writeString(value.toString()); } }
public void setOperatorID(OperatorID operatorID) { this.config.setBytes(OPERATOR_ID, operatorID.getBytes()); }
@Override public OperatorID getOperatorID() { return new OperatorID(); } }
dos.writeLong(operatorState.getOperatorID().getLowerPart()); dos.writeLong(operatorState.getOperatorID().getUpperPart());
public InputFormatVertex(String name, @Nullable OperatorID sourceOperatorId) { super(name); this.sourceOperatorId = (sourceOperatorId != null) ? sourceOperatorId : OperatorID.fromJobVertexID(this.getID()); }