public List<RegionInfo> getRegionsOfTable(TableName table) {
    return getRegionsOfTable(table, regionNode -> !regionNode.isInState(State.OFFLINE, State.SPLIT)
      && !regionNode.getRegionInfo().isSplitParent());
  }
Returns Return online regions of table; does not include OFFLINE or SPLITTING regions.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/RegionStates.java