@NotThreadSafe public class UnderFileSystemFileOutStream extends BlockOutStream
Modifier | Constructor and Description |
---|---|
protected |
UnderFileSystemFileOutStream(DataWriter dataWriter,
WorkerNetAddress address)
Constructs a new
UnderFileSystemFileOutStream with only one DataWriter . |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static UnderFileSystemFileOutStream |
create(FileSystemContext context,
WorkerNetAddress address,
OutStreamOptions options)
Creates an instance of
UnderFileSystemFileOutStream that writes to a UFS file. |
DataWriter |
getDataWriter() |
cancel, createReplicatedBlockOutStream, flush, getAddress, remaining, write, write, write, write, write
protected UnderFileSystemFileOutStream(DataWriter dataWriter, WorkerNetAddress address)
UnderFileSystemFileOutStream
with only one DataWriter
.dataWriter
- the data writerpublic static UnderFileSystemFileOutStream create(FileSystemContext context, WorkerNetAddress address, OutStreamOptions options) throws IOException
UnderFileSystemFileOutStream
that writes to a UFS file.context
- the file system contextaddress
- the data server addressoptions
- the out stream optionsIOException
public DataWriter getDataWriter()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class BlockOutStream
IOException
Copyright © 2023. All Rights Reserved.