 | FileSystemClientUploadStream(Stream, String, Int32, Int32, Boolean, ProgressCallback) Method |
Uploads the contents of the specified stream to the file system.
Namespace: Ookii.Jumbo.Dfs.FileSystemAssembly: Ookii.Jumbo.Dfs (in Ookii.Jumbo.Dfs.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntaxpublic void UploadStream(
Stream stream,
string targetPath,
int blockSize,
int replicationFactor,
bool useLocalReplica,
ProgressCallback? progressCallback
)
Public Sub UploadStream (
stream As Stream,
targetPath As String,
blockSize As Integer,
replicationFactor As Integer,
useLocalReplica As Boolean,
progressCallback As ProgressCallback
)
public:
void UploadStream(
Stream^ stream,
String^ targetPath,
int blockSize,
int replicationFactor,
bool useLocalReplica,
ProgressCallback^ progressCallback
)
member UploadStream :
stream : Stream *
targetPath : string *
blockSize : int *
replicationFactor : int *
useLocalReplica : bool *
progressCallback : ProgressCallback -> unit
Parameters
- stream Stream
- The stream with the data to upload.
- targetPath String
- The path of the file on the file system to write the data to.
- 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 DFS cluster; otherwise, . This parameter will be ignored if the file system doesn't support replica placement.
- progressCallback ProgressCallback
- The ProgressCallback that will be called to report progress of the operation. May be .
See Also