Code example for LinkedHashMap

Methods: put

    public static class JsonMapper extends Mapper { 
        protected void map(Object key, Object value, Context context) throws IOException, InterruptedException {
            StringTokenizer st = new StringTokenizer(value.toString(), "\t");
            Map<String, String> entry = new LinkedHashMap<String, String>();
            entry.put("number", st.nextToken());
            entry.put("name", st.nextToken());
            entry.put("url", st.nextToken());
            if (st.hasMoreTokens()) {
                entry.put("picture", st.nextToken());
            context.write(key, WritableUtils.toWritable(entry));
    public void testBasicSave() throws Exception { 
        Configuration conf = createConf();
Connect your IDE to all the code out there  Get Codota for Java