22 #ifndef KINETICIO_REDUNDANCYPROVIDER_HH
23 #define KINETICIO_REDUNDANCYPROVIDER_HH
31 #include <unordered_map>
67 std::vector<unsigned char>
table;
95 const std::string& pattern
107 std::unordered_map<std::string, CodingTable>
cache;
void replication(stripes_t &stripes)
std::mutex mutex
concurrency control
Definition: XrdEcRedundancyProvider.hh:109
ObjCfg objcfg
Definition: XrdEcRedundancyProvider.hh:102
CodingTable & getCodingTable(const std::string &pattern)
RedundancyProvider(const ObjCfg &objcfg)
std::vector< unsigned int > blockIndices
array of nData size, containing stripe indices to input blocks
Definition: XrdEcRedundancyProvider.hh:69
Definition: XrdEcRedundancyProvider.hh:41
Definition: XrdEcRedundancyProvider.hh:65
int nErrors
Number of errors this coding table is constructed for (maximum==nParity)
Definition: XrdEcRedundancyProvider.hh:71
std::vector< unsigned char > table
the coding table
Definition: XrdEcRedundancyProvider.hh:67
std::unordered_map< std::string, CodingTable > cache
a cache of previously used coding tables
Definition: XrdEcRedundancyProvider.hh:107
void compute(stripes_t &stripes)
std::vector< unsigned char > encode_matrix
the encoding matrix, required to compute any decode matrix
Definition: XrdEcRedundancyProvider.hh:105
std::vector< stripe_t > stripes_t
All stripes in a block.
Definition: XrdEcUtilities.hh:64
Definition: XrdEcObjCfg.hh:33
std::string getErrorPattern(stripes_t &stripes) const