org.apache.hadoop.hive.ql.exec.mr
Class ObjectCache

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.mr.ObjectCache
All Implemented Interfaces:
ObjectCache

public class ObjectCache
extends Object
implements ObjectCache

ObjectCache. No-op implementation on MR we don't have a means to reuse Objects between runs of the same task.


Constructor Summary
ObjectCache()
           
 
Method Summary
 void cache(String key, Object value)
          Add an object to the cache
 Object retrieve(String key)
          Retrieve object from cache.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectCache

public ObjectCache()
Method Detail

cache

public void cache(String key,
                  Object value)
Description copied from interface: ObjectCache
Add an object to the cache

Specified by:
cache in interface ObjectCache

retrieve

public Object retrieve(String key)
Description copied from interface: ObjectCache
Retrieve object from cache.

Specified by:
retrieve in interface ObjectCache
Returns:
the last cached object with the key, null if none.


Copyright © 2014 The Apache Software Foundation. All rights reserved.