public Collection < String > getShardingLogicTableNames ( final Collection < String > logicTableNames ) { Collection < String > result = new LinkedList <> ( ) ; for ( String each : logicTableNames ) { Optional < TableRule > tableRule = findTableRule ( each ) ; if ( tableRule . isPresent ( ) ) { result . add ( each ) ; } } return result ; }
Get sharding logic table names .