Oracle NoSQL Database
version 11gR2.2.0.26

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
 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.

Oracle NoSQL Database
version 11gR2.2.0.26

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