Package brickhouse.hbase

Examples of brickhouse.hbase.SaltedBigIntUDF.evaluate()


  @Test
  public void testSaltId() {
    SaltedBigIntUDF salty = new SaltedBigIntUDF();
   
    long joe = 44;
    String joeSalt = salty.evaluate( joe);
   
    System.out.println(" Joe's Salt = " + joeSalt);
    Assert.assertEquals("0044:44", joeSalt);
   
    long jerome = 995034;
View Full Code Here


   
    System.out.println(" Joe's Salt = " + joeSalt);
    Assert.assertEquals("0044:44", joeSalt);
   
    long jerome = 995034;
    String jeromeSalt = salty.evaluate( jerome);
   
    System.out.println(" Jerome's Salt = " + jeromeSalt);
    Assert.assertEquals("5034:995034", jeromeSalt);
   
    long barack = 2055;
View Full Code Here

   
    System.out.println(" Jerome's Salt = " + jeromeSalt);
    Assert.assertEquals("5034:995034", jeromeSalt);
   
    long barack = 2055;
    String barackSalt = salty.evaluate( barack);
   
    System.out.println(" Barack's Salt = " + barackSalt);
    Assert.assertEquals("2055:2055", barackSalt);
   
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.