public static boolean isCatalogCompatible ( String catalogVersionStr ) { if ( catalogVersionStr == null || catalogVersionStr . isEmpty ( ) ) { return false ; } //Check that it is a properly formed verstion string Object [ ] catalogVersion = MiscUtils . parseVersionString ( catalogVersionStr ) ; if ( catalogVersion == null ) { throw new IllegalArgumentException ( "Invalid version string " + catalogVersionStr ) ; } if ( ! catalogVersionStr . equals ( VoltDB . instance ( ) . getVersionString ( ) ) ) { return false ; } return true ; }
Check if a catalog compiled with the given version of VoltDB is compatible with the current version of VoltDB .