public class HadoopDataOutputStream extends FSDataOutputStream
| 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 FSDataOutputStreamIOExceptionpublic long getPos()
throws IOException
getPos in class FSDataOutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class FSDataOutputStreamIOExceptionpublic void sync()
throws IOException
sync in class FSDataOutputStreamIOExceptionpublic org.apache.hadoop.fs.FSDataOutputStream getHadoopOutputStream()
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.