public Map < Integer , Date > getShards ( TableDefinition tableDef ) { checkServiceState ( ) ; if ( tableDef . isSharded ( ) ) { return m_shardCache . getShardMap ( tableDef ) ; } else { return new HashMap <> ( ) ; } }
Get all known shards for the given table . Each shard is defined in a column in the _shards row of the table s Terms store . If the given table is not sharded an empty map is returned .