public class RateLimitedOutputStream extends DataOutputStream
OutputStream
which limits the rate at which data may be written.
Underlying OutputStream is a FSDataOutputStream.written
out
Constructor and Description |
---|
RateLimitedOutputStream(org.apache.hadoop.fs.FSDataOutputStream fsDataOutputStream,
RateLimiter writeLimiter) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
position() |
void |
write(byte[] buffer,
int offset,
int length) |
void |
write(int i) |
flush, size, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
write
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
write
public RateLimitedOutputStream(org.apache.hadoop.fs.FSDataOutputStream fsDataOutputStream, RateLimiter writeLimiter)
public void write(int i) throws IOException
write
in interface DataOutput
write
in class DataOutputStream
IOException
public void write(byte[] buffer, int offset, int length) throws IOException
write
in interface DataOutput
write
in class DataOutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterOutputStream
IOException
public long position() throws IOException
IOException
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.