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

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


        JavaBooleanObjectInspector jboi = (JavaBooleanObjectInspector) sf.getFieldObjectInspector();
  assertEquals(true, jboi.get(result.get("cboolean")));
 
  sf = soi.getStructFieldRef("ctinyint");
  assertTrue(sf.getFieldObjectInspector() instanceof JavaStringByteObjectInspector);
        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")));
View Full Code Here


        JavaBooleanObjectInspector jboi = (JavaBooleanObjectInspector) sf.getFieldObjectInspector();
  assertEquals(true, jboi.get(result.get("cboolean")));
 
  sf = soi.getStructFieldRef("ctinyint");
  assertTrue(sf.getFieldObjectInspector() instanceof JavaStringByteObjectInspector);
        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")));
View Full Code Here

  JSONObject result = (JSONObject) serde.deserialize(line);
 
        StructField sf = soi.getStructFieldRef("ctinyint");
 
  assertTrue(sf.getFieldObjectInspector() instanceof JavaStringByteObjectInspector);
        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();
View Full Code Here

TOP

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

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.