Top Description Methods
org.apache.avro.generic

public Interface GenericRecord

extends IndexedRecord
Known Direct Implementers
org.apache.avro.specific.SpecificRecordBase, org.apache.avro.generic.GenericData.Record

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

Method Summary

Modifier and TypeMethod and Description
public Object
get(String key)

Return the value of a field given its name.

public default boolean
hasField(String key)

Return true if record has field with name: key

public void
put(String key, Object v)

Set the value of a field given its name.

Inherited from org.apache.avro.generic.IndexedRecord:
getput

Method Detail

getback to summary
public Object get(String key)

Return the value of a field given its name.

hasFieldback to summary
public default boolean hasField(String key)

Return true if record has field with name: key

putback to summary
public void put(String key, Object v)

Set the value of a field given its name.