public boolean sameTypes ( Schema schema ) { if ( schema . numColumns ( ) != numColumns ( ) ) return false ; for ( int i = 0 ; i < schema . numColumns ( ) ; i ++ ) { if ( getType ( i ) != schema . getType ( i ) ) return false ; } return true ; }
Returns true if the given schema has the same types at each index