private boolean include(final RegionStateNode node, final boolean offline) {
    if (LOG.isTraceEnabled()) {
      LOG.trace("WORKING ON " + node + " " + node.getRegionInfo());
    }
    final RegionInfo hri = node.getRegionInfo();
    if (node.isInState(State.SPLIT) || hri.isSplit()) {
      return false;
    }
    if ((node.isInState(State.OFFLINE) || hri.isOffline()) && !offline) {
      return false;
    }
    return (!hri.isOffline() && !hri.isSplit()) || ((hri.isOffline() || hri.isSplit()) && offline);
  }
Utility. Whether to include region in list of regions. Default is to weed out split and offline
regions.
@return True if we should include the <code>node</code> (do not include if split or offline
        unless <code>offline</code> is set to true.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/RegionStates.java