Commit 62a96633 authored by R.W.Majeed's avatar R.W.Majeed

moved to transform sub package

parent ad39be5d
......@@ -5,6 +5,7 @@ import java.util.Queue;
import java.util.function.Consumer;
import de.sekmi.histream.Observation;
import de.sekmi.histream.io.transform.Transformation;
/**
* Abstract transformation
......
......@@ -6,8 +6,6 @@ import java.util.function.Function;
import de.sekmi.histream.Observation;
import de.sekmi.histream.ext.Patient;
import de.sekmi.histream.ext.Visit;
import de.sekmi.histream.io.Transformation;
import de.sekmi.histream.io.TransformationException;
/**
* Replace patient and visit information for each observation.
......
package de.sekmi.histream.io;
package de.sekmi.histream.io.transform;
import java.io.UncheckedIOException;
import java.util.function.Supplier;
import de.sekmi.histream.Observation;
import de.sekmi.histream.io.AbstractTransformer;
/**
* Perform transformation of {@link Observation}s for a {@link Supplier}.
......@@ -24,11 +25,11 @@ public class PullTransformer extends AbstractTransformer implements Supplier<Obs
/**
* Execute this transformation after another transformation
* @param previousTransformation previous transformation
* @param nextTransformation previous transformation
* @return composite transformer which executes this transformation after the specified previous transformation
*/
public PullTransformer andThen(Transformation previousTransformation){
return new PullTransformer(this, previousTransformation);
public PullTransformer andThen(Transformation nextTransformation){
return new PullTransformer(this, nextTransformation);
}
@Override
public Observation get() {
......
package de.sekmi.histream.io;
package de.sekmi.histream.io.transform;
import java.io.UncheckedIOException;
import java.util.function.Consumer;
import de.sekmi.histream.Observation;
import de.sekmi.histream.io.AbstractTransformer;
public class PushTransformer extends AbstractTransformer implements Consumer<Observation>{
private Consumer<Observation> target;
......
......@@ -7,6 +7,9 @@ import java.io.InputStream;
import org.junit.Test;
import de.sekmi.histream.io.transform.PullTransformer;
import de.sekmi.histream.io.transform.Transformation;
public class TransformerTest {
@Test
......
......@@ -12,8 +12,8 @@ import de.sekmi.histream.eval.Engine;
import de.sekmi.histream.eval.ScriptException;
import de.sekmi.histream.eval.StringValueEqualsEngine;
import de.sekmi.histream.impl.XPathEvaluator;
import de.sekmi.histream.io.Transformation;
import de.sekmi.histream.io.TransformationException;
import de.sekmi.histream.io.transform.Transformation;
import de.sekmi.histream.io.transform.TransformationException;
import de.sekmi.histream.ontology.OntologyException;
import de.sekmi.histream.ontology.skos.ConceptImpl;
import de.sekmi.histream.ontology.skos.Store;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment