public static < K > void store ( Configuration conf , K item , String keyName ) throws IOException { DefaultStringifier < K > stringifier = new DefaultStringifier < K > ( conf , GenericsUtil . getClass ( item ) ) ; conf . set ( keyName , stringifier . toString ( item ) ) ; stringifier . close ( ) ; }
Stores the item in the configuration with the given keyName .