Examples of writeObjectField()


Examples of org.codehaus.jackson.JsonGenerator.writeObjectField()

      // if geometry column exists, write it
      if (geometryColumn > -1) {
        BytesWritable bytesWritable = (BytesWritable)fieldWritables.get(geometryColumn);
        if (bytesWritable == null) {
          jsonGen.writeObjectField("geometry", null);
        } else {
          OGCGeometry ogcGeometry = GeometryUtils.geometryFromEsriShape(bytesWritable);
          jsonGen.writeRaw(",\"geometry\":" + GeometryEngine.geometryToJson(ogcGeometry.getEsriSpatialReference(),
                                          ogcGeometry.getEsriGeometry()));
        }       
View Full Code Here

Examples of org.elasticsearch.common.jackson.core.JsonGenerator.writeObjectField()

          for (Object val : value.getValues()) {
            generator.writeObject(val);
          }
          generator.writeEndArray();
        } else {
          generator.writeObjectField(value.getName(), value.getValue());
        }
      }
      generator.writeEndObject();
      generator.flush();
      return new String(stream.toByteArray(), Charset.forName("UTF-8"));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.