Package com.ebay.erl.mobius.core.datajoin

Examples of com.ebay.erl.mobius.core.datajoin.DataJoinValue


                "more than one rows ("+aggregatedResult.size()+") per key, so it is not combinable.");
        }
      }
     
      DataJoinKey outKey    = new DataJoinKey(datasetID, key);
      DataJoinValue outValue  = new DataJoinValue(datasetID, combinedValue);
      output.collect(outKey, outValue);
    }
  }
View Full Code Here


*/
public class DataJoinValueTest {

  @Test
  public void testConstructor() {
    DataJoinValue djvalue = new DataJoinValue(Byte.valueOf("1"), new Text("2"));
   
    Assert.assertEquals("1", djvalue.getDatasetID());
    Assert.assertEquals(new Text("2"), djvalue.getValue());
   
  }
View Full Code Here

   
  }
 
  @Test
  public void testCompare() {
    DataJoinValue djvalue1     = new DataJoinValue(Byte.valueOf("1"), new Text("1"));
    DataJoinValue djvalue1_1   = new DataJoinValue(Byte.valueOf("1"), new Text("1"));
    DataJoinValue djvalue2     = new DataJoinValue(Byte.valueOf("1"), new Text("2"));
   
    Assert.assertEquals(-1, djvalue1.compareTo(djvalue2));
    Assert.assertEquals(1, djvalue2.compareTo(djvalue1));
    Assert.assertEquals(0, djvalue1.compareTo(djvalue1_1));
    Assert.assertEquals(0, djvalue1_1.compareTo(djvalue1));
  }
View Full Code Here

TOP

Related Classes of com.ebay.erl.mobius.core.datajoin.DataJoinValue

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.