protected static class FileBasedSink.StreamStatus extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
protected OutputStream |
dataOutputStream |
protected File |
outputDirectory |
protected org.apache.jena.riot.Lang |
outputLang |
int |
tripleCount |
protected OutputStream |
tripleOutputStream |
protected org.apache.jena.riot.system.StreamRDF |
tripleStream |
protected org.dice_research.squirrel.data.uri.CrawleableUri |
uri |
protected String |
uriString |
protected boolean |
useCompression |
Constructor and Description |
---|
StreamStatus(org.dice_research.squirrel.data.uri.CrawleableUri uri,
File outputDirectory,
org.apache.jena.riot.Lang outputLang,
boolean useCompression) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected OutputStream |
createStream(String postFix,
boolean isRdfFile) |
void |
flush() |
OutputStream |
getDataOutputStream() |
org.apache.jena.riot.system.StreamRDF |
getTripleOutputStream() |
void |
increaseTripleCount() |
public int tripleCount
protected org.dice_research.squirrel.data.uri.CrawleableUri uri
protected String uriString
protected File outputDirectory
protected boolean useCompression
protected org.apache.jena.riot.Lang outputLang
protected org.apache.jena.riot.system.StreamRDF tripleStream
protected OutputStream tripleOutputStream
protected OutputStream dataOutputStream
public StreamStatus(org.dice_research.squirrel.data.uri.CrawleableUri uri, File outputDirectory, org.apache.jena.riot.Lang outputLang, boolean useCompression)
public org.apache.jena.riot.system.StreamRDF getTripleOutputStream() throws IOException
IOException
public OutputStream getDataOutputStream() throws IOException
IOException
public void flush() throws IOException
IOException
protected OutputStream createStream(String postFix, boolean isRdfFile) throws IOException
IOException
public void increaseTripleCount()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2017–2020. All rights reserved.