com.senseidb.indexing.hadoop.map
Class MapInputConverter
java.lang.Object
JsonFilter
com.senseidb.indexing.hadoop.map.MapInputConverter
- Direct Known Subclasses:
- DummyMapInputConverter
public abstract class MapInputConverter
- extends JsonFilter
Method Summary |
protected abstract org.json.JSONObject |
doFilter(org.json.JSONObject data)
|
abstract org.json.JSONObject |
getJsonInput(Object key,
Object value,
org.apache.hadoop.conf.Configuration conf)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapInputConverter
public MapInputConverter()
getJsonInput
public abstract org.json.JSONObject getJsonInput(Object key,
Object value,
org.apache.hadoop.conf.Configuration conf)
throws org.json.JSONException
- Parameters:
key
- key as mapper input;value
- value as mapper input;conf
- conf as the Job Configuration;
- Returns:
- A JSONObject converted from the map input record;
- Throws:
org.json.JSONException
doFilter
protected abstract org.json.JSONObject doFilter(org.json.JSONObject data)
throws Exception
- Throws:
Exception
Copyright © 2010-2012. All Rights Reserved.