oracle.kv.hadoop

## Interface AvroFormatter

-     public interface AvroFormatter

  Avro Formatter is an interface implemented by user-specified classes that can format NoSQL Database records into AvroRecords to be returned by a KVAvroRecordReader. `toAvroRecord(oracle.kv.KeyValueVersion, oracle.kv.KVStore)` is called once for each record retrieved by a KVAvroInputFormat.
  Since:
    2.0

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `IndexedRecord` | `toAvroRecord(KeyValueVersion kvv, KVStore kvstore)` Convert a KeyValueVersion into a String.

- - ### Method Detail

    - #### toAvroRecord

          IndexedRecord toAvroRecord(KeyValueVersion kvv,
                                   KVStore kvstore)

      Convert a KeyValueVersion into a String.
      Parameters:
        `kvv` - the Key and Value to be formatted.
        `kvstore` - the KV Store object related to this record so that the Formatter may retrieve (e.g.) Avro bindings.
      Returns:
        The Avro record suitable for interpretation by the caller of the KVAvroInputFormat.

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