Ejemplo n.º 1
0
 //Ensures how many distributed table regions it has.
 private void EnsureHTableRegions()
 {
     lock (_lockObj)
     {
         if (!_regions.TryGetValue(TableName, out _regionManager))
         {
             Region[] regions = _client.GetTableRegions(TableName);
             _regions[TableName] = _regionManager = new HTableRegionManager(regions, _hostMappingManager);
         }
     }
 }