Oracle NoSQL Database
version 11gR2.2.0.26

oracle.kv.avro
Class RawRecord

java.lang.Object
  extended by oracle.kv.avro.RawRecord

public class RawRecord
extends Object

A RawRecord represents an Avro object as a Schema along with the raw Avro serialized data. It is used with a RawAvroBinding.

Since:
2.0
See Also:
RawAvroBinding, getRawBinding

Constructor Summary
RawRecord(byte[] rawData, Schema schema)
          Creates a RawRecord from a Schema and Avro serialized data.
 
Method Summary
 boolean equals(Object other)
           
 byte[] getRawData()
          Returns the Avro serialized data for this RawRecord.
 Schema getSchema()
          Returns the Avro Schema for this RawRecord.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RawRecord

public RawRecord(byte[] rawData,
                 Schema schema)
Creates a RawRecord from a Schema and Avro serialized data.

Method Detail

getRawData

public byte[] getRawData()
Returns the Avro serialized data for this RawRecord.


getSchema

public Schema getSchema()
Returns the Avro Schema for this RawRecord.


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.