org.apache.solr.response.transform

## Class WriteableGeoJSON

- java.lang.Object
- - org.apache.solr.response.WriteableValue
  - - org.apache.solr.response.transform.WriteableGeoJSON

- All Implemented Interfaces:
    JavaBinCodec.ObjectResolver

      public class WriteableGeoJSON
      extends WriteableValue

  This will let the writer add values to the response directly

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `org.locationtech.spatial4j.io.ShapeWriter` | `jsonWriter`
    `org.locationtech.spatial4j.shape.Shape` | `shape`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `WriteableGeoJSON(org.locationtech.spatial4j.shape.Shape shape, org.locationtech.spatial4j.io.ShapeWriter jsonWriter)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Object` | `resolve(Object o, JavaBinCodec codec)`
    `String` | `toString()`
    `void` | `write(String name, TextResponseWriter writer)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### shape

          public final org.locationtech.spatial4j.shape.Shape shape

    - #### jsonWriter

          public final org.locationtech.spatial4j.io.ShapeWriter jsonWriter

  - ### Constructor Detail

    - #### WriteableGeoJSON

          public WriteableGeoJSON(org.locationtech.spatial4j.shape.Shape shape,
                                  org.locationtech.spatial4j.io.ShapeWriter jsonWriter)

  - ### Method Detail

    - #### resolve

          public Object resolve(Object o,
                                JavaBinCodec codec)
                         throws IOException

      Throws:
        `IOException`

    - #### write

          public void write(String name,
                            TextResponseWriter writer)
                     throws IOException

      Specified by:
        `write` in class `WriteableValue`
      Throws:
        `IOException`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.