| FileSystemClientCreateFile Method (String, Int32, Int32, RecordStreamOptions) |
Creates a new file with the specified path on the file system.
Namespace:
Ookii.Jumbo.Dfs.FileSystem
Assembly:
Ookii.Jumbo.Dfs (in Ookii.Jumbo.Dfs.dll) Version: 2.0.0
Syntax public Stream CreateFile(
string path,
int blockSize,
int replicationFactor,
RecordStreamOptions recordOptions
)
Public Function CreateFile (
path As String,
blockSize As Integer,
replicationFactor As Integer,
recordOptions As RecordStreamOptions
) As Stream
public:
Stream^ CreateFile(
String^ path,
int blockSize,
int replicationFactor,
RecordStreamOptions recordOptions
)
member CreateFile :
path : string *
blockSize : int *
replicationFactor : int *
recordOptions : RecordStreamOptions -> Stream
Parameters
- path
- Type: SystemString
The path containing the directory and name of the file to create. - blockSize
- Type: SystemInt32
The block size of the file, or zero to use the file system default block size. This parameter will be ignored if the file system doesn't support blocks. - replicationFactor
- Type: SystemInt32
The number of replicas to create of the file's blocks, or zero to use the file system default replication factor. This parameter will be ignored if the file system doesn't support replication. - recordOptions
- Type: Ookii.Jumbo.IORecordStreamOptions
The record options for the file. This parameter will be ignored if the file system doesn't support record options.
Return Value
Type:
Stream
A
Stream that can be used to write data to the file.
See Also