org.apache.avro.generic
Class GenericData.Record

java.lang.Object
  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:
GenericData

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
Map.Entry<K,V>
 
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

GenericData.Record

public GenericData.Record(Schema schema)
Method Detail

getSchema

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

Specified by:
getSchema in interface GenericContainer

compareTo

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


Copyright © 2009 The Apache Software Foundation