public static boolean isTableMaterializeViewSource ( org . voltdb . catalog . Database database , org . voltdb . catalog . Table table ) { CatalogMap < Table > tables = database . getTables ( ) ; for ( Table t : tables ) { Table matsrc = t . getMaterializer ( ) ; if ( ( matsrc != null ) && ( matsrc . getRelativeIndex ( ) == table . getRelativeIndex ( ) ) ) { return true ; } } return false ; }
Return true if a table is the source table for a materialized view .