oracle.kv.avro

## Class RawRecord

- java.lang.Object
- - 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

    Constructors
    Constructor and Description
    `RawRecord(byte[] rawData, Schema schema)` Creates a RawRecord from a Schema and Avro serialized data.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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`

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