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

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


        JavaStringByteObjectInspector boi = (JavaStringByteObjectInspector) sf.getFieldObjectInspector();
  assertEquals(1, boi.get(result.get("ctinyint")));
 
  sf = soi.getStructFieldRef("csmallint");
  assertTrue(sf.getFieldObjectInspector() instanceof JavaStringShortObjectInspector);
        JavaStringShortObjectInspector shoi = (JavaStringShortObjectInspector) sf.getFieldObjectInspector();
  assertEquals(200, shoi.get(result.get("csmallint")));
 
 
  sf = soi.getStructFieldRef("cint");
  assertTrue(sf.getFieldObjectInspector() instanceof JavaStringIntObjectInspector);
        JavaStringIntObjectInspector oi = (JavaStringIntObjectInspector) sf.getFieldObjectInspector();
View Full Code Here


        JavaStringByteObjectInspector boi = (JavaStringByteObjectInspector) sf.getFieldObjectInspector();
  assertEquals(-1, boi.get(result.get("ctinyint")));
 
  sf = soi.getStructFieldRef("csmallint");
  assertTrue(sf.getFieldObjectInspector() instanceof JavaStringShortObjectInspector);
        JavaStringShortObjectInspector shoi = (JavaStringShortObjectInspector) sf.getFieldObjectInspector();
  assertEquals(-200, shoi.get(result.get("csmallint")));
 
 
  sf = soi.getStructFieldRef("cint");
  assertTrue(sf.getFieldObjectInspector() instanceof JavaStringIntObjectInspector);
        JavaStringIntObjectInspector oi = (JavaStringIntObjectInspector) sf.getFieldObjectInspector();
View Full Code Here

  assertEquals(1, boi.get(result.get("ctinyint")));
       
       
  sf = soi.getStructFieldRef("csmallint");
  assertTrue(sf.getFieldObjectInspector() instanceof JavaStringShortObjectInspector);
        JavaStringShortObjectInspector shoi = (JavaStringShortObjectInspector) sf.getFieldObjectInspector();
  assertEquals(10, shoi.get(result.get("csmallint")));
 
 
  sf = soi.getStructFieldRef("cint");
  assertTrue(sf.getFieldObjectInspector() instanceof JavaStringIntObjectInspector);
        JavaStringIntObjectInspector oi = (JavaStringIntObjectInspector) sf.getFieldObjectInspector();
View Full Code Here

TOP

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

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.