Package brickhouse.hbase

Examples of brickhouse.hbase.SaltedBigIntUDF


   
  }
 
  @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;
    String jeromeSalt = salty.evaluate( jerome);
   
    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

Related Classes of brickhouse.hbase.SaltedBigIntUDF

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.