Package com.mapr.fs
Class MapRFsDataOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- java.io.DataOutputStream
-
- org.apache.hadoop.fs.FSDataOutputStream
-
- com.mapr.fs.MapRFsDataOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.DataOutput,java.io.Flushable,java.lang.AutoCloseable,org.apache.hadoop.fs.CanSetDropBehind,org.apache.hadoop.fs.StreamCapabilities,org.apache.hadoop.fs.Syncable
public class MapRFsDataOutputStream extends org.apache.hadoop.fs.FSDataOutputStream
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.commons.logging.LogLOG
-
Constructor Summary
Constructors Constructor Description MapRFsDataOutputStream(MapRFsOutStream out)Deprecated.MapRFsDataOutputStream(MapRFsOutStream out, long startPosition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()longgetChunkSize()long[]getFidServers()java.lang.StringgetFidStr()longgetPos()java.io.OutputStreamgetWrappedStream()voidhflush()voidhsync()voidseek(long pos)voidsync()voidwrite(byte[] b, int off, int len)voidwrite(int b)-
Methods inherited from class java.io.DataOutputStream
size, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
-
-
-
-
Constructor Detail
-
MapRFsDataOutputStream
@Deprecated public MapRFsDataOutputStream(MapRFsOutStream out) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
MapRFsDataOutputStream
public MapRFsDataOutputStream(MapRFsOutStream out, long startPosition) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
write
public void write(int b) throws java.io.IOException- Specified by:
writein interfacejava.io.DataOutput- Overrides:
writein classjava.io.DataOutputStream- Throws:
java.io.IOException
-
write
public void write(byte[] b, int off, int len) throws java.io.IOException- Specified by:
writein interfacejava.io.DataOutput- Overrides:
writein classjava.io.DataOutputStream- Throws:
java.io.IOException
-
getPos
public long getPos() throws java.io.IOException- Overrides:
getPosin classorg.apache.hadoop.fs.FSDataOutputStream- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classorg.apache.hadoop.fs.FSDataOutputStream- Throws:
java.io.IOException
-
getWrappedStream
public java.io.OutputStream getWrappedStream()
- Overrides:
getWrappedStreamin classorg.apache.hadoop.fs.FSDataOutputStream
-
sync
public void sync() throws java.io.IOException- Specified by:
syncin interfaceorg.apache.hadoop.fs.Syncable- Overrides:
syncin classorg.apache.hadoop.fs.FSDataOutputStream- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException- Specified by:
flushin interfacejava.io.Flushable- Overrides:
flushin classjava.io.DataOutputStream- Throws:
java.io.IOException
-
hflush
public void hflush() throws java.io.IOException- Specified by:
hflushin interfaceorg.apache.hadoop.fs.Syncable- Overrides:
hflushin classorg.apache.hadoop.fs.FSDataOutputStream- Throws:
java.io.IOException
-
hsync
public void hsync() throws java.io.IOException- Specified by:
hsyncin interfaceorg.apache.hadoop.fs.Syncable- Overrides:
hsyncin classorg.apache.hadoop.fs.FSDataOutputStream- Throws:
java.io.IOException
-
seek
public void seek(long pos) throws java.io.IOException- Overrides:
seekin classorg.apache.hadoop.fs.FSDataOutputStream- Throws:
java.io.IOException
-
getFidStr
public java.lang.String getFidStr() throws java.io.IOException- Throws:
java.io.IOException
-
getFidServers
public long[] getFidServers() throws java.io.IOException- Overrides:
getFidServersin classorg.apache.hadoop.fs.FSDataOutputStream- Throws:
java.io.IOException
-
getChunkSize
public long getChunkSize() throws java.io.IOException- Throws:
java.io.IOException
-
-