org.apache.pig.impl.util.avro
Class AvroMapWrapper

java.lang.Object
  extended by org.apache.pig.impl.util.avro.AvroMapWrapper
All Implemented Interfaces:
Map<CharSequence,Object>

public final class AvroMapWrapper
extends Object
implements Map<CharSequence,Object>

Wrapper for map objects, so we can translate UTF8 objects to Strings if we encounter them.


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
AvroMapWrapper(Map<CharSequence,Object> m)
          Creates a new AvroMapWrapper object from the map object .
 
Method Summary
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 Set<Map.Entry<CharSequence,Object>> entrySet()
           
 Object get(Object key)
           
 boolean isEmpty()
           
 Set<CharSequence> keySet()
           
 Object put(CharSequence key, Object value)
           
 void putAll(Map<? extends CharSequence,? extends Object> m)
           
 Object remove(Object key)
           
 int size()
           
 Collection<Object> values()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

AvroMapWrapper

public AvroMapWrapper(Map<CharSequence,Object> m)
Creates a new AvroMapWrapper object from the map object .

Parameters:
m - The map to wrap.
Method Detail

size

public int size()
Specified by:
size in interface Map<CharSequence,Object>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<CharSequence,Object>

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map<CharSequence,Object>

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map<CharSequence,Object>

get

public Object get(Object key)
Specified by:
get in interface Map<CharSequence,Object>

put

public Object put(CharSequence key,
                  Object value)
Specified by:
put in interface Map<CharSequence,Object>

remove

public Object remove(Object key)
Specified by:
remove in interface Map<CharSequence,Object>

putAll

public void putAll(Map<? extends CharSequence,? extends Object> m)
Specified by:
putAll in interface Map<CharSequence,Object>

clear

public void clear()
Specified by:
clear in interface Map<CharSequence,Object>

keySet

public Set<CharSequence> keySet()
Specified by:
keySet in interface Map<CharSequence,Object>

values

public Collection<Object> values()
Specified by:
values in interface Map<CharSequence,Object>

entrySet

public Set<Map.Entry<CharSequence,Object>> entrySet()
Specified by:
entrySet in interface Map<CharSequence,Object>


Copyright © 2007-2012 The Apache Software Foundation