IPWorks Cloud 2020 C++ Edition

Questions / Feedback?

ResourceReplication Property

The replication factor of the file.

Syntax

ANSI (Cross Platform)
int GetResourceReplication(int iResourceIndex);

Unicode (Windows)
INT GetResourceReplication(INT iResourceIndex);
- (int)resourceReplication:(int)resourceIndex;
#define PID_HADOOPDFS_RESOURCEREPLICATION 53

IPWORKSCLOUD_EXTERNAL void* IPWORKSCLOUD_CALL IPWorksCloud_HadoopDFS_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);

IPWORKSCLOUD_EXTERNAL int IPWORKSCLOUD_CALL IPWorksCloud_HadoopDFS_CheckIndex(void *lpObj, int propid, int arridx);

Default Value

0

Remarks

The replication factor of the file.

This property reflects the replication factor of the file. Always 0 for directories.

A file's replication factor determines how many copies of the file's data ("replicas") are maintained by HDFS. For example, a replication factor of 3 means that HDFS will maintain 2 replicas in addition to the original file. Thus, the minimum replication factor a file can have is 1.

The ResourceIndex parameter specifies the index of the item in the array. The size of the array is controlled by the ResourceCount property.

This property is read-only and not available at design time.

Data Type

Integer

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 C++ Edition - Version 20.0 [Build 8265]