Mercurial > hg > monetdb-java
view src/main/java/nl/cwi/monetdb/mcl/io/EmbeddedMCLWriter.java @ 63:6325594f01af embedded
Lots of cleaning, but still a long way to go.
author | Pedro Ferreira <pedro.ferreira@monetdbsolutions.com> |
---|---|
date | Wed, 30 Nov 2016 18:16:31 +0100 (2016-11-30) |
parents | b66003555560 |
children |
line wrap: on
line source
package nl.cwi.monetdb.mcl.io; import nl.cwi.monetdb.mcl.connection.EmbeddedMonetDB; import nl.cwi.monetdb.mcl.parser.embedded.EmbeddedHeaderLineParser; import nl.cwi.monetdb.mcl.parser.embedded.EmbeddedStartOfHeaderParser; import nl.cwi.monetdb.mcl.parser.embedded.EmbeddedTupleLineParser; import java.io.*; /** * Created by ferreira on 11/24/16. */ public final class EmbeddedMCLWriter extends AbstractMCLWriter { private final EmbeddedMonetDB connection; private final EmbeddedStartOfHeaderParser sohp; private EmbeddedHeaderLineParser nexthlp; private EmbeddedTupleLineParser nexttlp; public void setNexthlp(EmbeddedHeaderLineParser nexthlp) { this.nexthlp = nexthlp; } public void setNexttlp(EmbeddedTupleLineParser nexttlp) { this.nexttlp = nexttlp; } public EmbeddedMCLWriter(EmbeddedMonetDB con, EmbeddedMCLReader reader, EmbeddedStartOfHeaderParser sohp) { super(null); this.connection = con; this.reader = reader; this.sohp = sohp; } @Override public void writeLine(String line) throws IOException { this.reader.notify(); //wake up the embedded reader. } }