public class HadoopDataOutputStream
extends org.apache.flink.core.fs.FSDataOutputStream
FSDataOutputStream for Hadoop's input streams.
This supports all file systems supported by Hadoop, such as HDFS and S3 (S3a/S3n).| Constructor and Description |
|---|
HadoopDataOutputStream(org.apache.hadoop.fs.FSDataOutputStream fdos) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
org.apache.hadoop.fs.FSDataOutputStream |
getHadoopOutputStream()
Gets the wrapped Hadoop output stream.
|
long |
getPos() |
void |
sync() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
writepublic HadoopDataOutputStream(org.apache.hadoop.fs.FSDataOutputStream fdos)
public void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.flink.core.fs.FSDataOutputStreamIOExceptionpublic long getPos()
throws IOException
getPos in class org.apache.flink.core.fs.FSDataOutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class org.apache.flink.core.fs.FSDataOutputStreamIOExceptionpublic void sync()
throws IOException
sync in class org.apache.flink.core.fs.FSDataOutputStreamIOExceptionpublic org.apache.hadoop.fs.FSDataOutputStream getHadoopOutputStream()
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.