public static < K > K load ( Configuration conf , String keyName , Class < K > itemClass ) throws IOException { DefaultStringifier < K > stringifier = new DefaultStringifier < K > ( conf , itemClass ) ; try { String itemStr = conf . get ( keyName ) ; return stringifier . fromString ( itemStr ) ; } finally { stringifier . close ( ) ; } }
Restores the object from the configuration .