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

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


        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")));

  sf = soi.getStructFieldRef("cfloat");
  assertTrue(sf.getFieldObjectInspector() instanceof JavaStringFloatObjectInspector);
        JavaStringFloatObjectInspector foi = (JavaStringFloatObjectInspector) sf.getFieldObjectInspector();
  assertEquals(3.1415 , foi.get(result.get("cfloat")),0.001);
View Full Code Here


        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")));

  sf = soi.getStructFieldRef("cfloat");
  assertTrue(sf.getFieldObjectInspector() instanceof JavaStringFloatObjectInspector);
        JavaStringFloatObjectInspector foi = (JavaStringFloatObjectInspector) sf.getFieldObjectInspector();
  assertEquals(-3.1415 , foi.get(result.get("cfloat")),0.001);
View Full Code Here

        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

TOP

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

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.