@Override public String getTaskName() { return taskInfo.getTaskName(); }
@VisibleForTesting public static <OUT> List<RecordWriter<SerializationDelegate<StreamRecord<OUT>>>> createRecordWriters( StreamConfig configuration, Environment environment) { List<RecordWriter<SerializationDelegate<StreamRecord<OUT>>>> recordWriters = new ArrayList<>(); List<StreamEdge> outEdgesInOrder = configuration.getOutEdgesInOrder(environment.getUserClassLoader()); Map<Integer, StreamConfig> chainedConfigs = configuration.getTransitiveChainedTaskConfigsWithSelf(environment.getUserClassLoader()); for (int i = 0; i < outEdgesInOrder.size(); i++) { StreamEdge edge = outEdgesInOrder.get(i); recordWriters.add( createRecordWriter( edge, i, environment, environment.getTaskInfo().getTaskName(), chainedConfigs.get(edge.getSourceId()).getBufferTimeout())); } return recordWriters; }
@Override public String getTaskName() { return taskInfo.getTaskName(); }
/** * Utility function that composes a string for logging purposes. The string includes the given message and * the index of the task in its task group together with the number of tasks in the task group. * * @param message The main message for the log. * @return The string ready for logging. */ private String getLogString(String message) { return BatchTask.constructLogString(message, this.getEnvironment().getTaskInfo().getTaskName(), this); }
/** * Utility function that composes a string for logging purposes. The string includes the given message and * the index of the task in its task group together with the number of tasks in the task group. * * @param message The main message for the log. * @return The string ready for logging. */ private String getLogString(String message) { return BatchTask.constructLogString(message, this.getEnvironment().getTaskInfo().getTaskName(), this); }
/** * Utility function that composes a string for logging purposes. The string includes the given message and * the index of the task in its task group together with the number of tasks in the task group. * * @param message The main message for the log. * @return The string ready for logging. */ private String getLogString(String message) { return BatchTask.constructLogString(message, this.getEnvironment().getTaskInfo().getTaskName(), this); }
/** * Utility function that composes a string for logging purposes. The string includes the given message and * the index of the task in its task group together with the number of tasks in the task group. * * @param message The main message for the log. * @return The string ready for logging. */ private String getLogString(String message) { return BatchTask.constructLogString(message, this.getEnvironment().getTaskInfo().getTaskName(), this); }
/** * Utility function that composes a string for logging purposes. The string includes the given message and * the index of the task in its task group together with the number of tasks in the task group. * * @param message The main message for the log. * @return The string ready for logging. */ private String getLogString(String message) { return getLogString(message, this.getEnvironment().getTaskInfo().getTaskName()); }
@Override public String formatLogString(String message) { return constructLogString(message, getEnvironment().getTaskInfo().getTaskName(), this); }
/** * Utility function that composes a string for logging purposes. The string includes the given message and * the index of the task in its task group together with the number of tasks in the task group. * * @param message The main message for the log. * @return The string ready for logging. */ private String getLogString(String message) { return getLogString(message, this.getEnvironment().getTaskInfo().getTaskName()); }
/** * Utility function that composes a string for logging purposes. The string includes the given message and * the index of the task in its task group together with the number of tasks in the task group. * * @param message The main message for the log. * @return The string ready for logging. */ private String getLogString(String message) { return getLogString(message, this.getEnvironment().getTaskInfo().getTaskName()); }
/** * Utility function that composes a string for logging purposes. The string includes the given message and * the index of the task in its task group together with the number of tasks in the task group. * * @param message The main message for the log. * @return The string ready for logging. */ private String getLogString(String message) { return getLogString(message, this.getEnvironment().getTaskInfo().getTaskName()); }
public DistributedRuntimeUDFContext createRuntimeContext() { Environment env = getEnvironment(); String sourceName = getEnvironment().getTaskInfo().getTaskName().split("->")[0].trim(); sourceName = sourceName.startsWith("CHAIN") ? sourceName.substring(6) : sourceName; return new DistributedRuntimeUDFContext(env.getTaskInfo(), getUserCodeClassLoader(), getExecutionConfig(), env.getDistributedCacheEntries(), env.getAccumulatorRegistry(), getEnvironment().getMetricGroup().addOperator(sourceName)); } }
public DistributedRuntimeUDFContext createRuntimeContext() { Environment env = getEnvironment(); String sourceName = getEnvironment().getTaskInfo().getTaskName().split("->")[0].trim(); sourceName = sourceName.startsWith("CHAIN") ? sourceName.substring(6) : sourceName; return new DistributedRuntimeUDFContext(env.getTaskInfo(), getUserCodeClassLoader(), getExecutionConfig(), env.getDistributedCacheEntries(), env.getAccumulatorRegistry().getUserMap(), getEnvironment().getMetricGroup().getOrAddOperator(sourceName)); } }
public DistributedRuntimeUDFContext createRuntimeContext() { Environment env = getEnvironment(); String sourceName = getEnvironment().getTaskInfo().getTaskName().split("->")[0].trim(); sourceName = sourceName.startsWith("CHAIN") ? sourceName.substring(6) : sourceName; return new DistributedRuntimeUDFContext(env.getTaskInfo(), getUserCodeClassLoader(), getExecutionConfig(), env.getDistributedCacheEntries(), env.getAccumulatorRegistry().getUserMap(), getEnvironment().getMetricGroup().addOperator(sourceName)); } }
public DistributedRuntimeUDFContext createRuntimeContext() { Environment env = getEnvironment(); String sourceName = getEnvironment().getTaskInfo().getTaskName().split("->")[0].trim(); sourceName = sourceName.startsWith("CHAIN") ? sourceName.substring(6) : sourceName; return new DistributedRuntimeUDFContext(env.getTaskInfo(), getUserCodeClassLoader(), getExecutionConfig(), env.getDistributedCacheEntries(), env.getAccumulatorRegistry().getUserMap(), getEnvironment().getMetricGroup().getOrAddOperator(sourceName)); } }
public DistributedRuntimeUDFContext createRuntimeContext() { Environment env = getEnvironment(); return new DistributedRuntimeUDFContext(env.getTaskInfo(), getUserCodeClassLoader(), getExecutionConfig(), env.getDistributedCacheEntries(), env.getAccumulatorRegistry(), getEnvironment().getMetricGroup().addOperator(getEnvironment().getTaskInfo().getTaskName())); } }
public DistributedRuntimeUDFContext createRuntimeContext() { Environment env = getEnvironment(); return new DistributedRuntimeUDFContext(env.getTaskInfo(), getUserCodeClassLoader(), getExecutionConfig(), env.getDistributedCacheEntries(), env.getAccumulatorRegistry().getUserMap(), getEnvironment().getMetricGroup().getOrAddOperator(getEnvironment().getTaskInfo().getTaskName())); } }
public DistributedRuntimeUDFContext createRuntimeContext() { Environment env = getEnvironment(); return new DistributedRuntimeUDFContext(env.getTaskInfo(), getUserCodeClassLoader(), getExecutionConfig(), env.getDistributedCacheEntries(), env.getAccumulatorRegistry().getUserMap(), getEnvironment().getMetricGroup().addOperator(getEnvironment().getTaskInfo().getTaskName())); } }
public DistributedRuntimeUDFContext createRuntimeContext() { Environment env = getEnvironment(); return new DistributedRuntimeUDFContext(env.getTaskInfo(), getUserCodeClassLoader(), getExecutionConfig(), env.getDistributedCacheEntries(), env.getAccumulatorRegistry().getUserMap(), getEnvironment().getMetricGroup().getOrAddOperator(getEnvironment().getTaskInfo().getTaskName())); } }