 | DfsOutputStream(INameServerClientProtocol, String, Int32, Int32, Boolean, RecordStreamOptions) Constructor |
Initializes a new instance of the
DfsOutputStream with the specified name server and file.
Namespace: Ookii.Jumbo.DfsAssembly: Ookii.Jumbo.Dfs (in Ookii.Jumbo.Dfs.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntaxpublic DfsOutputStream(
INameServerClientProtocol nameServer,
string path,
int blockSize,
int replicationFactor,
bool useLocalReplica,
RecordStreamOptions recordOptions
)
Public Sub New (
nameServer As INameServerClientProtocol,
path As String,
blockSize As Integer,
replicationFactor As Integer,
useLocalReplica As Boolean,
recordOptions As RecordStreamOptions
)
public:
DfsOutputStream(
INameServerClientProtocol^ nameServer,
String^ path,
int blockSize,
int replicationFactor,
bool useLocalReplica,
RecordStreamOptions recordOptions
)
new :
nameServer : INameServerClientProtocol *
path : string *
blockSize : int *
replicationFactor : int *
useLocalReplica : bool *
recordOptions : RecordStreamOptions -> DfsOutputStream
Parameters
- nameServer INameServerClientProtocol
- The INameServerClientProtocol interface of the name server for the distributed
file system.
- path String
- The path of the file to write.
- blockSize Int32
- The size of the blocks of the file, or zero to use the file system default block size.
- replicationFactor Int32
- The number of replicas to create of the file's blocks, or zero to use the file system default replication factor.
- useLocalReplica Boolean
- to put the first replica on the node that's creating the file if it's part of the DFS cluster; otherwise, .
- recordOptions RecordStreamOptions
- The record options for the file.
See Also