net.sf.eos.hadoop.mapred
Class AbstractKeyGenerator<K extends WritableComparable>

java.lang.Object
  extended by net.sf.eos.config.Configured
      extended by net.sf.eos.hadoop.mapred.AbstractKeyGenerator<K>
All Implemented Interfaces:
Configurable, KeyGenerator<K>
Direct Known Subclasses:
IdMetadataKeyGenerator, TextMetaKeyGenerator

public abstract class AbstractKeyGenerator<K extends WritableComparable>
extends Configured
implements KeyGenerator<K>

Simple implementation with a factory.

Author:
Sascha Kohlmann

Field Summary
static String ABSTRACT_KEY_GENERATOR_IMPL_CONFIG_NAME
           
 
Constructor Summary
AbstractKeyGenerator()
           
 
Method Summary
static AbstractKeyGenerator<? extends WritableComparable> newInstance(Configuration conf)
          Creates a new instance.
 
Methods inherited from class net.sf.eos.config.Configured
configure, getConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.eos.hadoop.mapred.KeyGenerator
createKeysForDocument
 

Field Detail

ABSTRACT_KEY_GENERATOR_IMPL_CONFIG_NAME

@ConfigurationKey(type=CLASSNAME,
                  description="Key generator instances support the generation of keys in the map-reduce map task.")
public static final String ABSTRACT_KEY_GENERATOR_IMPL_CONFIG_NAME
See Also:
Constant Field Values
Constructor Detail

AbstractKeyGenerator

public AbstractKeyGenerator()
Method Detail

newInstance

@FactoryMethod(key="net.sf.eos.hadoop.mapred.AbstractKeyGenerator.impl")
public static final AbstractKeyGenerator<? extends WritableComparable> newInstance(Configuration conf)
                                                                            throws EosException
Creates a new instance.

Parameters:
conf - the configuration with the configuration data for the implementation
Returns:
a new instance
Throws:
EosException - if an error occurs


Copyright © 2008. All Rights Reserved.