Sha256: 553a25817932112df9e32088b8fbbf70e3610ce66728f2baaff82f22fdb44acb

Contents?: true

Size: 652 Bytes

Versions: 4

Compression:

Stored size: 652 Bytes

Contents

package org.apache.hadoop.ruby.mapred;

import java.io.IOException;

import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapred.JobConf;
import org.junit.Test;

public class JRubyMapperTest {

	@Test
	public void testMap() throws IOException {
		LongWritable key = new LongWritable(0L);
		Text value = new Text();
		value.set("value");

		JRubyMapper mapper = new JRubyMapper();
		JobConf conf = new JobConf();
		conf.set("mapred.ruby.script", "mapred.rb");
		mapper.configure(conf);

		try {
			mapper.map(key, value, null, null);
		} catch (Throwable t) {
			// ignore
			// TODO mock check
		}
	}

}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jruby-on-hadoop-0.0.6 test/java/org/apache/hadoop/ruby/mapred/JRubyMapperTest.java
jruby-on-hadoop-0.0.5 test/java/org/apache/hadoop/ruby/mapred/JRubyMapperTest.java
jruby-on-hadoop-0.0.4 test/java/org/apache/hadoop/ruby/mapred/JRubyMapperTest.java
jruby-on-hadoop-0.0.3 test/java/org/apache/hadoop/ruby/mapred/JRubyMapperTest.java