code: public ShardingStrategy getTableShardingStrategy(final TableRule tableRule) {
          return null == tableRule.getTableShardingStrategy() ? defaultTableShardingStrategy : tableRule.getTableShardingStrategy();
      }
docs: Get table sharding strategy.
  
  <p>
  Use default table sharding strategy if not found.
  </p>
  
  @param tableRule table rule
  @return table sharding strategy