org.apache.avro.generic
Interface GenericRecord

All Superinterfaces:
GenericContainer, IndexedRecord
All Known Implementing Classes:
GenericData.Record

public interface GenericRecord
extends IndexedRecord

A generic instance of a record schema. Fields are accessible by name as well as by index.


Method Summary
 Object get(String key)
          Return the value of a field given its name.
 void put(String key, Object v)
          Set the value of a field given its name.
 
Methods inherited from interface org.apache.avro.generic.IndexedRecord
get, put
 
Methods inherited from interface org.apache.avro.generic.GenericContainer
getSchema
 

Method Detail

put

void put(String key,
         Object v)
Set the value of a field given its name.


get

Object get(String key)
Return the value of a field given its name.



Copyright © 2011 The Apache Software Foundation. All Rights Reserved.