de.kumpe.hadooptimizer.examples.painting
Class SvgRenderer

java.lang.Object
  extended by org.apache.hadoop.conf.Configured
      extended by de.kumpe.hadooptimizer.examples.Example
          extended by de.kumpe.hadooptimizer.examples.painting.SvgRenderer
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable

public class SvgRenderer
extends Example

The SvgRenderer uses a MapReduce-Job to convert the results.txt of a Kit run into a SVG-Image of every 1000 evolution-cycle's best result.

It also writes these results into a SequenceFile with the cycle as a LongWritable key and the values as an double[] wrapped into an ObjectWritable.

The results.txt has to be given as the first argument.

Author:
Christian Kumpe

Nested Class Summary
static class SvgRenderer.SvgRendererMapper
          The Mapper to do the actual work.
 
Field Summary
 
Fields inherited from class de.kumpe.hadooptimizer.examples.Example
BANNER_TEXT, baseDir, COMMAND_LINE, commandLine, log, logFile, OPTION_GUI, OPTION_HELP, OPTION_LOG_LEVEL, shutdownHooks
 
Constructor Summary
SvgRenderer()
           
 
Method Summary
 org.apache.commons.cli.Options createOptions()
           
 void execute()
           
protected  String getVersionInfo()
           
 
Methods inherited from class de.kumpe.hadooptimizer.examples.Example
intputStream, outputStream, processCommandLine, run
 
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SvgRenderer

public SvgRenderer()
Method Detail

createOptions

public org.apache.commons.cli.Options createOptions()
Overrides:
createOptions in class Example

execute

public void execute()
             throws Exception
Specified by:
execute in class Example
Throws:
Exception

getVersionInfo

protected String getVersionInfo()
Specified by:
getVersionInfo in class Example


Copyright © 2011 Christian Kumpe. All Rights Reserved.