public static < T > TableSource < T > findAndCreateTableSource ( Descriptor descriptor ) { Map < String , String > properties = descriptor . toProperties ( ) ; TableSource tableSource ; try { tableSource = TableFactoryService . find ( TableSourceFactory . class , properties ) . createTableSource ( properties ) ; } catch ( Throwable t ) { throw new TableException ( "findAndCreateTableSource failed." , t ) ; } return tableSource ; }
Returns a table source matching the descriptor .