public class EvaluatingContext extends Object
PersistingContext.
todo: support reading and writing from arbitrary Path types
| Modifier and Type | Class and Description |
|---|---|
private class |
EvaluatingContext.SpecificEval |
| Modifier and Type | Field and Description |
|---|---|
private Path |
basePath |
private TaskContext |
delegate |
(package private) static String |
OUTPUT_SUFFIX |
| Constructor and Description |
|---|
EvaluatingContext(Path basePath,
TaskContext delegate) |
| Modifier and Type | Method and Description |
|---|---|
<T> TaskContext.Value<T> |
evaluateTaskFrom(Path persistedTask)
Evaluate a persisted task, expecting it's input values to exist as "_out" files in the same
directory.
|
private <T> void |
persist(TaskId taskId,
T output) |
private Path |
resolveExistingOutput(TaskId taskId) |
static final String OUTPUT_SUFFIX
private final Path basePath
private final TaskContext delegate
public EvaluatingContext(Path basePath, TaskContext delegate)
public <T> TaskContext.Value<T> evaluateTaskFrom(Path persistedTask)
The output of the evaluated task will be persisted in the same directory.
T - The task output typepersistedTask - A path to the persisted task file that should be evaluatedprivate <T> void persist(TaskId taskId, T output)
Copyright © 2017. All Rights Reserved.