@NotThreadSafe public final class UfsFallbackLocalFileDataWriter extends java.lang.Object implements DataWriter
DataWriter.Factory| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels an operation.
|
int |
chunkSize() |
void |
close() |
static UfsFallbackLocalFileDataWriter |
create(FileSystemContext context,
WorkerNetAddress address,
long blockId,
long blockSize,
OutStreamOptions options) |
void |
flush()
Flushes all the pending chunks.
|
long |
pos() |
void |
writeChunk(io.netty.buffer.ByteBuf chunk)
Writes a chunk.
|
public static UfsFallbackLocalFileDataWriter create(FileSystemContext context, WorkerNetAddress address, long blockId, long blockSize, OutStreamOptions options) throws java.io.IOException
context - the file system contextaddress - the worker network addressblockId - the block IDblockSize - the block sizeoptions - the output stream optionsUfsFallbackLocalFileDataWriter instance createdjava.io.IOExceptionpublic void writeChunk(io.netty.buffer.ByteBuf chunk)
throws java.io.IOException
DataWriterwriteChunk in interface DataWriterchunk - the chunkjava.io.IOExceptionpublic void flush()
throws java.io.IOException
DataWriterflush in interface DataWriterjava.io.IOExceptionpublic int chunkSize()
chunkSize in interface DataWriterpublic long pos()
pos in interface DataWriterpublic void cancel()
throws java.io.IOException
Cancelablecancel in interface Cancelablejava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionCopyright © 2022. All Rights Reserved.