private Arguments createProgramArguments ( TwillContext context , Map < String , String > configs ) { Map < String , String > args = ImmutableMap . < String , String > builder ( ) . put ( ProgramOptionConstants . INSTANCE_ID , Integer . toString ( context . getInstanceId ( ) ) ) . put ( ProgramOptionConstants . INSTANCES , Integer . toString ( context . getInstanceCount ( ) ) ) . put ( ProgramOptionConstants . RUN_ID , context . getApplicationRunId ( ) . getId ( ) ) . putAll ( Maps . filterKeys ( configs , Predicates . not ( Predicates . in ( ImmutableSet . of ( "hConf" , "cConf" ) ) ) ) ) . build ( ) ; return new BasicArguments ( args ) ; }
Creates program arguments . It includes all configurations from the specification excluding hConf and cConf .