 | FileSystemClientCreateFile(String, Int32, Int32, Boolean, RecordStreamOptions) Method |
Creates a new file with the specified path on the file system.
Namespace: Ookii.Jumbo.Dfs.FileSystemAssembly: Ookii.Jumbo.Dfs (in Ookii.Jumbo.Dfs.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntaxpublic abstract Stream CreateFile(
string path,
int blockSize,
int replicationFactor,
bool useLocalReplica,
RecordStreamOptions recordOptions
)
Public MustOverride Function CreateFile (
path As String,
blockSize As Integer,
replicationFactor As Integer,
useLocalReplica As Boolean,
recordOptions As RecordStreamOptions
) As Stream
public:
virtual Stream^ CreateFile(
String^ path,
int blockSize,
int replicationFactor,
bool useLocalReplica,
RecordStreamOptions recordOptions
) abstract
abstract CreateFile :
path : string *
blockSize : int *
replicationFactor : int *
useLocalReplica : bool *
recordOptions : RecordStreamOptions -> Stream
Parameters
- path String
- The path containing the directory and name of the file to create.
- blockSize Int32
- 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 Int32
- 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.
- useLocalReplica Boolean
- to put the first replica on the node that's creating the file if it's part of the file system cluster; otherwise, . This parameter will be ignored if the file system doesn't support replica placement.
- recordOptions RecordStreamOptions
- The record options for the file. This parameter will be ignored if the file system doesn't support record options.
Return Value
Stream
A
Stream that can be used to write data to the file.
See Also