Package org.apache.flink.runtime.fs.hdfs
Class HadoopDataOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.apache.flink.core.fs.FSDataOutputStream
-
- org.apache.flink.runtime.fs.hdfs.HadoopDataOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class HadoopDataOutputStream extends org.apache.flink.core.fs.FSDataOutputStreamConcrete implementation of theFSDataOutputStreamfor Hadoop's input streams. This supports all file systems supported by Hadoop, such as HDFS and S3 (S3a/S3n).
-
-
Constructor Summary
Constructors Constructor Description HadoopDataOutputStream(org.apache.hadoop.fs.FSDataOutputStream fdos)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()org.apache.hadoop.fs.FSDataOutputStreamgetHadoopOutputStream()Gets the wrapped Hadoop output stream.longgetPos()voidsync()voidwrite(byte[] b, int off, int len)voidwrite(int b)-
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
-
-
-
Method Detail
-
write
public void write(int b) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] b, int off, int len) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classorg.apache.flink.core.fs.FSDataOutputStream- Throws:
IOException
-
getPos
public long getPos() throws IOException- Specified by:
getPosin classorg.apache.flink.core.fs.FSDataOutputStream- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Specified by:
flushin classorg.apache.flink.core.fs.FSDataOutputStream- Throws:
IOException
-
sync
public void sync() throws IOException- Specified by:
syncin classorg.apache.flink.core.fs.FSDataOutputStream- Throws:
IOException
-
getHadoopOutputStream
public org.apache.hadoop.fs.FSDataOutputStream getHadoopOutputStream()
Gets the wrapped Hadoop output stream.- Returns:
- The wrapped Hadoop output stream.
-
-