| INameServerClientProtocolCreateFile Method |
Creates a new file in the specified directory.
Namespace:
Ookii.Jumbo.Dfs
Assembly:
Ookii.Jumbo.Dfs (in Ookii.Jumbo.Dfs.dll) Version: 2.0.0
Syntax BlockAssignment CreateFile(
string path,
int blockSize,
int replicationFactor,
bool localReplica,
RecordStreamOptions recordOptions
)
Function CreateFile (
path As String,
blockSize As Integer,
replicationFactor As Integer,
localReplica As Boolean,
recordOptions As RecordStreamOptions
) As BlockAssignment
BlockAssignment^ CreateFile(
String^ path,
int blockSize,
int replicationFactor,
bool localReplica,
RecordStreamOptions recordOptions
)
abstract CreateFile :
path : string *
blockSize : int *
replicationFactor : int *
localReplica : bool *
recordOptions : RecordStreamOptions -> BlockAssignment
Parameters
- path
- Type: SystemString
The full path of the new file. - blockSize
- Type: SystemInt32
The size of the blocks in the file, or zero to use the file system default block size. - replicationFactor
- Type: SystemInt32
The number of replicas to create of the file's blocks, or zero to use the file system default replication factor. - localReplica
- Type: SystemBoolean
to put the first replica on the node that's creating the file if it's part of the DFS cluster; otherwise, . - recordOptions
- Type: Ookii.Jumbo.IORecordStreamOptions
The record options for the file.
Return Value
Type:
BlockAssignment
The
BlockAssignment for the first block of the file.
Exceptions See Also