Package org.apache.crunch.test

Examples of org.apache.crunch.test.StringWrapper


  }
 
  @Test
  public void testPairOutputMapFn_VerifyNoObjectReuse(){
    StringWrapper stringWrapper = new StringWrapper("Test");
   
    Pair<Integer,StringWrapper> pair = Pair.of(1, stringWrapper);
   
    AvroType<Pair<Integer, StringWrapper>> pairType = Avros.pairs(Avros.ints(), Avros.reflects(StringWrapper.class));
   
View Full Code Here


public class MapDeepCopierTest {

  @Test
  public void testDeepCopy() {
    StringWrapper stringWrapper = new StringWrapper("value");
    String key = "key";
    Map<String, StringWrapper> map = Maps.newHashMap();
    map.put(key, stringWrapper);

    MapDeepCopier<StringWrapper> deepCopier = new MapDeepCopier<StringWrapper>(Avros.reflects(StringWrapper.class));
View Full Code Here

TOP

Related Classes of org.apache.crunch.test.StringWrapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.