[−][src]Function rust_hdfs::hdfsStreamBuilderSetReplication
pub unsafe extern "C" fn hdfsStreamBuilderSetReplication(
bld: *mut hdfsStreamBuilder,
replication: i16
) -> c_int
hdfsStreamBuilderSetReplication - Set the replication for the stream. This is only relevant for output streams, which will create new blocks.
@param bld The hdfs stream builder. @param replication The replication to set.
@return 0 on success, or -1 on error. Errno will be set on error. If you call this on an input stream builder, you will get EINVAL, because this configuration is not relevant to input streams.