statisticsnorway / java-vtl

An Open Source Java implementation of the Validation Transformation Language, based on the VTL 1.1 draft specification. The implementation follows the JSR-223 Java Scripting API and exposes a simple connector interface one can implement in order to integrate with any data stores. VTL is a standard language for defining validation and transformation rules (set of operators, their syntax and semantics) for any kind of statistical data.
http://java-vtl.org
Apache License 2.0
21 stars 7 forks source link

Include information about the execution plan and relation in result of an expression #95

Open hadrienk opened 6 years ago

hadrienk commented 6 years ago

The current model only present the result of the execution of a VTL expression as a stream.

Instead, we should use our own representation (probably extending stream) that includes information about how the data is processed, the other operations it is getting data from, etc.

interface VtlPlan {
  Collection<? extends VtlStream<T>> getChildren();
  ? extends VtlStream<T> getParent();
  VtlPipeline getPipeline();
}
class VtlStream<T> extends Stream<T> implements VtlPlan {
  /* ... */
}