Oracle NoSQL Database
version 11gR2.2.0.26

oracle.kv.avro
Class JsonRecord

java.lang.Object
  extended by 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
JsonRecord(JsonNode jsonNode, Schema schema)
          Creates a JsonRecord from a Schema and a JsonNode.
 
Method Summary
 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

Oracle NoSQL Database
version 11gR2.2.0.26

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