public < T > T deser ( Object obj , InputStream in ) throws IOException { Map < Class , Deserializer > deserializers = cachedDeserializers . get ( ) ; Deserializer deSer = deserializers . get ( obj . getClass ( ) ) ; if ( deSer == null ) { deSer = serialization . getDeserializer ( obj . getClass ( ) ) ; deserializers . put ( obj . getClass ( ) , deSer ) ; } deSer . open ( in ) ; obj = deSer . deserialize ( obj ) ; deSer . close ( ) ; return ( T ) obj ; }
Deseerializes into the given object using the Hadoop serialization system . Object cannot be null .