List<BufferInfo> bufferStates = ImmutableList.copyOf(transform(outputBuffers.getBuffers().keySet(), new Function<String, BufferInfo>()
{
@Override
public BufferInfo apply(String outputId)
{
return new BufferInfo(outputId, false, 0, 0);
}
}));
TaskStats taskStats = new TaskContext(taskId, executor, session).getTaskStats();