@NotThreadSafe public final class UfsFallbackLocalFileDataWriter extends 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,
alluxio.wire.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, alluxio.wire.WorkerNetAddress address, long blockId, long blockSize, OutStreamOptions options) throws IOException
context - the file system contextaddress - the worker network addressblockId - the block IDblockSize - the block sizeoptions - the output stream optionsUfsFallbackLocalFileDataWriter instance createdIOExceptionpublic void writeChunk(io.netty.buffer.ByteBuf chunk)
throws IOException
DataWriterwriteChunk in interface DataWriterchunk - the chunkIOExceptionpublic void flush()
throws IOException
DataWriterflush in interface DataWriterIOExceptionpublic int chunkSize()
chunkSize in interface DataWriterpublic long pos()
pos in interface DataWriterpublic void cancel()
throws IOException
Cancelablecancel in interface CancelableIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2024. All Rights Reserved.