@InterfaceAudience.Public public class ObjectCache extends Object
Modifier and Type | Method and Description |
---|---|
void |
cache(String key,
Object value)
Convenience method to cache objects in ObjectRegistry for a vertex
|
static ObjectCache |
getInstance() |
org.apache.tez.runtime.api.ObjectRegistry |
getObjectRegistry()
Returns the tez ObjectRegistry which allows caching of objects at the
Session, DAG and Vertex level on container reuse for better performance
and savings
|
Object |
retrieve(String key)
Convenience method to retrieve objects cached for the vertex from ObjectRegistry
|
public static ObjectCache getInstance()
public org.apache.tez.runtime.api.ObjectRegistry getObjectRegistry()
public void cache(String key, Object value)
Copyright © 2007-2012 The Apache Software Foundation