Java 类org.apache.hadoop.io.TestGenericWritable.FooGenericWritable 实例源码

项目:hadoop-oss    文件:TestWritableSerialization.java   
@Test
public void testWritableConfigurable() throws Exception {

  //set the configuration parameter
  conf.set(CONF_TEST_KEY, CONF_TEST_VALUE);

  //reuse TestGenericWritable inner classes to test 
  //writables that also implement Configurable.
  FooGenericWritable generic = new FooGenericWritable();
  generic.setConf(conf);
  Baz baz = new Baz();
  generic.set(baz);
  Baz result = SerializationTestUtil.testSerialization(conf, baz);
  assertEquals(baz, result);
  assertNotNull(result.getConf());
}
项目:hadoop    文件:TestWritableSerialization.java   
@Test
public void testWritableConfigurable() throws Exception {

  //set the configuration parameter
  conf.set(CONF_TEST_KEY, CONF_TEST_VALUE);

  //reuse TestGenericWritable inner classes to test 
  //writables that also implement Configurable.
  FooGenericWritable generic = new FooGenericWritable();
  generic.setConf(conf);
  Baz baz = new Baz();
  generic.set(baz);
  Baz result = SerializationTestUtil.testSerialization(conf, baz);
  assertEquals(baz, result);
  assertNotNull(result.getConf());
}
项目:aliyun-oss-hadoop-fs    文件:TestWritableSerialization.java   
@Test
public void testWritableConfigurable() throws Exception {

  //set the configuration parameter
  conf.set(CONF_TEST_KEY, CONF_TEST_VALUE);

  //reuse TestGenericWritable inner classes to test 
  //writables that also implement Configurable.
  FooGenericWritable generic = new FooGenericWritable();
  generic.setConf(conf);
  Baz baz = new Baz();
  generic.set(baz);
  Baz result = SerializationTestUtil.testSerialization(conf, baz);
  assertEquals(baz, result);
  assertNotNull(result.getConf());
}
项目:big-c    文件:TestWritableSerialization.java   
@Test
public void testWritableConfigurable() throws Exception {

  //set the configuration parameter
  conf.set(CONF_TEST_KEY, CONF_TEST_VALUE);

  //reuse TestGenericWritable inner classes to test 
  //writables that also implement Configurable.
  FooGenericWritable generic = new FooGenericWritable();
  generic.setConf(conf);
  Baz baz = new Baz();
  generic.set(baz);
  Baz result = SerializationTestUtil.testSerialization(conf, baz);
  assertEquals(baz, result);
  assertNotNull(result.getConf());
}
项目:hadoop-2.6.0-cdh5.4.3    文件:TestWritableSerialization.java   
@Test
public void testWritableConfigurable() throws Exception {

  //set the configuration parameter
  conf.set(CONF_TEST_KEY, CONF_TEST_VALUE);

  //reuse TestGenericWritable inner classes to test 
  //writables that also implement Configurable.
  FooGenericWritable generic = new FooGenericWritable();
  generic.setConf(conf);
  Baz baz = new Baz();
  generic.set(baz);
  Baz result = SerializationTestUtil.testSerialization(conf, baz);
  assertEquals(baz, result);
  assertNotNull(result.getConf());
}
项目:hadoop-plus    文件:TestWritableSerialization.java   
@Test
public void testWritableConfigurable() throws Exception {

  //set the configuration parameter
  conf.set(CONF_TEST_KEY, CONF_TEST_VALUE);

  //reuse TestGenericWritable inner classes to test 
  //writables that also implement Configurable.
  FooGenericWritable generic = new FooGenericWritable();
  generic.setConf(conf);
  Baz baz = new Baz();
  generic.set(baz);
  Baz result = SerializationTestUtil.testSerialization(conf, baz);
  assertEquals(baz, result);
  assertNotNull(result.getConf());
}
项目:hops    文件:TestWritableSerialization.java   
@Test
public void testWritableConfigurable() throws Exception {

  //set the configuration parameter
  conf.set(CONF_TEST_KEY, CONF_TEST_VALUE);

  //reuse TestGenericWritable inner classes to test 
  //writables that also implement Configurable.
  FooGenericWritable generic = new FooGenericWritable();
  generic.setConf(conf);
  Baz baz = new Baz();
  generic.set(baz);
  Baz result = SerializationTestUtil.testSerialization(conf, baz);
  assertEquals(baz, result);
  assertNotNull(result.getConf());
}
项目:hadoop-TCP    文件:TestWritableSerialization.java   
@Test
public void testWritableConfigurable() throws Exception {

  //set the configuration parameter
  conf.set(CONF_TEST_KEY, CONF_TEST_VALUE);

  //reuse TestGenericWritable inner classes to test 
  //writables that also implement Configurable.
  FooGenericWritable generic = new FooGenericWritable();
  generic.setConf(conf);
  Baz baz = new Baz();
  generic.set(baz);
  Baz result = SerializationTestUtil.testSerialization(conf, baz);
  assertEquals(baz, result);
  assertNotNull(result.getConf());
}
项目:hardfs    文件:TestWritableSerialization.java   
@Test
public void testWritableConfigurable() throws Exception {

  //set the configuration parameter
  conf.set(CONF_TEST_KEY, CONF_TEST_VALUE);

  //reuse TestGenericWritable inner classes to test 
  //writables that also implement Configurable.
  FooGenericWritable generic = new FooGenericWritable();
  generic.setConf(conf);
  Baz baz = new Baz();
  generic.set(baz);
  Baz result = SerializationTestUtil.testSerialization(conf, baz);
  assertEquals(baz, result);
  assertNotNull(result.getConf());
}
项目:hadoop-on-lustre2    文件:TestWritableSerialization.java   
@Test
public void testWritableConfigurable() throws Exception {

  //set the configuration parameter
  conf.set(CONF_TEST_KEY, CONF_TEST_VALUE);

  //reuse TestGenericWritable inner classes to test 
  //writables that also implement Configurable.
  FooGenericWritable generic = new FooGenericWritable();
  generic.setConf(conf);
  Baz baz = new Baz();
  generic.set(baz);
  Baz result = SerializationTestUtil.testSerialization(conf, baz);
  assertEquals(baz, result);
  assertNotNull(result.getConf());
}
项目:hadoop-EAR    文件:TestWritableSerialization.java   
public void testWritableConfigurable() throws Exception {

  //set the configuration parameter
  conf.set(CONF_TEST_KEY, CONF_TEST_VALUE);

  //reuse TestGenericWritable inner classes to test 
  //writables that also implement Configurable.
  FooGenericWritable generic = new FooGenericWritable();
  generic.setConf(conf);
  Baz baz = new Baz();
  generic.set(baz);
  Baz result = testSerialization(conf, baz);
  assertNotNull(result.getConf());
}
项目:hadoop-on-lustre    文件:TestWritableSerialization.java   
public void testWritableConfigurable() throws Exception {

  //set the configuration parameter
  conf.set(CONF_TEST_KEY, CONF_TEST_VALUE);

  //reuse TestGenericWritable inner classes to test 
  //writables that also implement Configurable.
  FooGenericWritable generic = new FooGenericWritable();
  generic.setConf(conf);
  Baz baz = new Baz();
  generic.set(baz);
  Baz result = testSerialization(conf, baz);
  assertNotNull(result.getConf());
}
项目:RDFS    文件:TestWritableSerialization.java   
public void testWritableConfigurable() throws Exception {

  //set the configuration parameter
  conf.set(CONF_TEST_KEY, CONF_TEST_VALUE);

  //reuse TestGenericWritable inner classes to test 
  //writables that also implement Configurable.
  FooGenericWritable generic = new FooGenericWritable();
  generic.setConf(conf);
  Baz baz = new Baz();
  generic.set(baz);
  Baz result = testSerialization(conf, baz);
  assertNotNull(result.getConf());
}
项目:hadoop-0.20    文件:TestWritableSerialization.java   
public void testWritableConfigurable() throws Exception {

  //set the configuration parameter
  conf.set(CONF_TEST_KEY, CONF_TEST_VALUE);

  //reuse TestGenericWritable inner classes to test 
  //writables that also implement Configurable.
  FooGenericWritable generic = new FooGenericWritable();
  generic.setConf(conf);
  Baz baz = new Baz();
  generic.set(baz);
  Baz result = testSerialization(conf, baz);
  assertNotNull(result.getConf());
}
项目:hortonworks-extension    文件:TestWritableSerialization.java   
public void testWritableConfigurable() throws Exception {

  //set the configuration parameter
  conf.set(CONF_TEST_KEY, CONF_TEST_VALUE);

  //reuse TestGenericWritable inner classes to test 
  //writables that also implement Configurable.
  FooGenericWritable generic = new FooGenericWritable();
  generic.setConf(conf);
  Baz baz = new Baz();
  generic.set(baz);
  Baz result = testSerialization(conf, baz);
  assertNotNull(result.getConf());
}
项目:hortonworks-extension    文件:TestWritableSerialization.java   
public void testWritableConfigurable() throws Exception {

  //set the configuration parameter
  conf.set(CONF_TEST_KEY, CONF_TEST_VALUE);

  //reuse TestGenericWritable inner classes to test 
  //writables that also implement Configurable.
  FooGenericWritable generic = new FooGenericWritable();
  generic.setConf(conf);
  Baz baz = new Baz();
  generic.set(baz);
  Baz result = testSerialization(conf, baz);
  assertNotNull(result.getConf());
}
项目:hadoop-gpu    文件:TestWritableSerialization.java   
public void testWritableConfigurable() throws Exception {

  //set the configuration parameter
  conf.set(CONF_TEST_KEY, CONF_TEST_VALUE);

  //reuse TestGenericWritable inner classes to test 
  //writables that also implement Configurable.
  FooGenericWritable generic = new FooGenericWritable();
  generic.setConf(conf);
  Baz baz = new Baz();
  generic.set(baz);
  Baz result = testSerialization(conf, baz);
  assertNotNull(result.getConf());
}