Click or drag to resize

DfsOutputStream Constructor (INameServerClientProtocol, String, Int32, Int32, Boolean, RecordStreamOptions)

Initializes a new instance of the DfsOutputStream with the specified name server and file.

Namespace:  Ookii.Jumbo.Dfs
Assembly:  Ookii.Jumbo.Dfs (in Ookii.Jumbo.Dfs.dll) Version: 2.0.0
Syntax
public DfsOutputStream(
	INameServerClientProtocol nameServer,
	string path,
	int blockSize,
	int replicationFactor,
	bool useLocalReplica,
	RecordStreamOptions recordOptions
)

Parameters

nameServer
Type: Ookii.Jumbo.DfsINameServerClientProtocol
The INameServerClientProtocol interface of the name server for the distributed file system.
path
Type: SystemString
The path of the file to write.
blockSize
Type: SystemInt32
The size of the blocks of 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.
useLocalReplica
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.
See Also