oracle.kv.avro

## Class JsonRecord

- java.lang.Object
- - oracle.kv.avro.JsonRecord

-     public class JsonRecord
      extends Object

  A JsonRecord a represents an Avro object as a `Schema` along with a `JsonNode`. It is used with a `JsonAvroBinding`.
  Since:
    2.0
  See Also:
    `JsonAvroBinding`, `getJsonBinding`, `getJsonMultiBinding`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `JsonRecord(JsonNode jsonNode, Schema schema)` Creates a JsonRecord from a `Schema` and a `JsonNode`.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object other)`
    `JsonNode` | `getJsonNode()` Returns the `JsonNode` for this JsonRecord.
    `Schema` | `getSchema()` Returns the Avro `Schema` for this JsonRecord.
    `int` | `hashCode()`
    `String` | `toString()`

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

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

- - ### Constructor Detail

    - #### JsonRecord

          public JsonRecord(JsonNode jsonNode,
                    Schema schema)

      Creates a JsonRecord from a `Schema` and a `JsonNode`.

  - ### Method Detail

    - #### getJsonNode

          public JsonNode getJsonNode()

      Returns the `JsonNode` for this JsonRecord.

    - #### getSchema

          public Schema getSchema()

      Returns the Avro `Schema` for this JsonRecord.

    - #### equals

          public boolean equals(Object other)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright (c) 2011, 2014 Oracle and/or its affiliates. All rights reserved.