wchevreuil commented on issue #931: HBASE-22285 A normalizer which merges small 
size regions with adjacen…
URL: https://github.com/apache/hbase/pull/931#issuecomment-566935817
 
 
   > After giving it a thought i believe we should have two normalizers one 
which splits and second which merges and may be third SimpleRegionNormalizer 
which uses these two and together.
   And to reuse code maybe we can have a utility class for normalizer which 
contains only pure methods which will help other normalization implementations.
   
   I'm not sure moving logic to an util class is a good design practice. Here I 
think we could probably do a strategy pattern: An abstract normalizer class 
implementing most of  _computePlanForTable_ logic, with only the parts related 
to picking a region to the region plan and what actions should be perfomed over 
the region plan (merge, or split, or both) being delegated to methods that 
would be implemented differently on each of the subclasses.  

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to