@InterfaceAudience.Public
public class ObjectCache
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
cache(java.lang.String key,
java.lang.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
|
java.lang.Object |
retrieve(java.lang.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(java.lang.String key, java.lang.Object value)
public java.lang.Object retrieve(java.lang.String key)
Copyright © 2007-2012 The Apache Software Foundation