Package org.openx.data.jsonserde.objectinspector.primitive

Examples of org.openx.data.jsonserde.objectinspector.primitive.JavaStringIntObjectInspector


  assertEquals(200, shoi.get(result.get("csmallint")));
 
 
  sf = soi.getStructFieldRef("cint");
  assertTrue(sf.getFieldObjectInspector() instanceof JavaStringIntObjectInspector);
        JavaStringIntObjectInspector oi = (JavaStringIntObjectInspector) sf.getFieldObjectInspector();
  assertEquals(12345, oi.get(result.get("cint")));
 
  sf = soi.getStructFieldRef("cbigint");
  assertTrue(sf.getFieldObjectInspector() instanceof JavaStringLongObjectInspector);
        JavaStringLongObjectInspector bioi = (JavaStringLongObjectInspector) sf.getFieldObjectInspector();
  assertEquals(123446767687867L , bioi.get(result.get("cbigint")));
View Full Code Here


  assertEquals(-200, shoi.get(result.get("csmallint")));
 
 
  sf = soi.getStructFieldRef("cint");
  assertTrue(sf.getFieldObjectInspector() instanceof JavaStringIntObjectInspector);
        JavaStringIntObjectInspector oi = (JavaStringIntObjectInspector) sf.getFieldObjectInspector();
  assertEquals(-12345, oi.get(result.get("cint")));
 
  sf = soi.getStructFieldRef("cbigint");
  assertTrue(sf.getFieldObjectInspector() instanceof JavaStringLongObjectInspector);
        JavaStringLongObjectInspector bioi = (JavaStringLongObjectInspector) sf.getFieldObjectInspector();
  assertEquals(-123446767687867L , bioi.get(result.get("cbigint")));
View Full Code Here

  assertEquals(10, shoi.get(result.get("csmallint")));
 
 
  sf = soi.getStructFieldRef("cint");
  assertTrue(sf.getFieldObjectInspector() instanceof JavaStringIntObjectInspector);
        JavaStringIntObjectInspector oi = (JavaStringIntObjectInspector) sf.getFieldObjectInspector();
  assertEquals(43981, oi.get(result.get("cint")));
 
  sf = soi.getStructFieldRef("cbigint");
  assertTrue(sf.getFieldObjectInspector() instanceof JavaStringLongObjectInspector);
        JavaStringLongObjectInspector bioi = (JavaStringLongObjectInspector) sf.getFieldObjectInspector();
  assertEquals(737879921170L , bioi.get(result.get("cbigint")));
View Full Code Here

           
            Object res = serde.deserialize(t);
           
            ObjectInspector foi = sf.getFieldObjectInspector();
            assertTrue( foi instanceof JavaStringIntObjectInspector);
            JavaStringIntObjectInspector jsioi = (JavaStringIntObjectInspector) foi;
            assertEquals(1234567,  jsioi.get(soi.getStructFieldData(res, sf))  );  
        }
       
        try {
            is.close();
        } catch (IOException ex){}
View Full Code Here

TOP

Related Classes of org.openx.data.jsonserde.objectinspector.primitive.JavaStringIntObjectInspector

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.