public boolean accept ( Class < ? > aClass ) { try { return ( testKryo . getRegistration ( aClass ) != null ) ; } catch ( IllegalArgumentException e ) { return false ; } }
Uses the initialized Kryo instance from the JobConf to test if Kryo will accept the class