public class SizeAwareFSDataOutputStream
extends org.apache.hadoop.fs.FSDataOutputStream
FSDataOutputStream to keep track of the size of the written bytes. This gives a cheap way
to check on the underlying file size.writtenout| Constructor and Description |
|---|
SizeAwareFSDataOutputStream(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.FSDataOutputStream out,
ConsistencyGuard consistencyGuard,
Runnable closeCallback) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getBytesWritten() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
getPos, getWrappedStream, hasCapability, hflush, hsync, setDropBehind, syncflush, size, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFpublic SizeAwareFSDataOutputStream(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.FSDataOutputStream out,
ConsistencyGuard consistencyGuard,
Runnable closeCallback)
throws IOException
IOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in interface DataOutputwrite in class DataOutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in interface DataOutputwrite in class FilterOutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.hadoop.fs.FSDataOutputStreamIOExceptionpublic long getBytesWritten()
Copyright © 2022 The Apache Software Foundation. All rights reserved.