Class GenericData.Record

  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,Object>
          extended by org.apache.avro.generic.GenericData.Record
All Implemented Interfaces:
Serializable, Cloneable, Comparable<GenericData.Record>, Map<String,Object>, GenericContainer, GenericRecord
Enclosing class:

public static class GenericData.Record
extends HashMap<String,Object>
implements GenericRecord, Comparable<GenericData.Record>

Default implementation of GenericRecord.

See Also:
Serialized Form

Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Nested classes/interfaces inherited from interface java.util.Map
Constructor Summary
GenericData.Record(Schema schema)
Method Summary
 int compareTo(GenericData.Record that)
 Schema getSchema()
          The schema of this instance.
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values

Constructor Detail


public GenericData.Record(Schema schema)
Method Detail


public Schema getSchema()
Description copied from interface: GenericContainer
The schema of this instance.

Specified by:
getSchema in interface GenericContainer


public int compareTo(GenericData.Record that)
Specified by:
compareTo in interface Comparable<GenericData.Record>

Copyright © 2009 The Apache Software Foundation