Created
October 6, 2010 02:19
-
-
Save rsumbaly/612704 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package voldemort.store.readonly.mr; | |
import org.apache.hadoop.io.LongWritable; | |
import org.apache.hadoop.io.Text; | |
public class DummyMapper extends AbstractHadoopStoreBuilderMapper<LongWritable, Text> { | |
@Override | |
public Object makeKey(LongWritable key, Text value) { | |
return value.toString().split(" ")[0]; | |
} | |
@Override | |
public Object makeValue(LongWritable key, Text value) { | |
return value.toString().split(" ")[1]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment