storm.trident.state.map
Class CachedMap<T>
java.lang.Object
storm.trident.state.map.CachedMap<T>
- Type Parameters:
T -
- All Implemented Interfaces:
- IBackingMap<T>
public class CachedMap<T>
- extends Object
- implements IBackingMap<T>
Useful to layer over a map that communicates with a database. you generally layer opaque map over this over your database store
- Author:
- nathan
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CachedMap
public CachedMap(IBackingMap<T> delegate,
int cacheSize)
multiGet
public List<T> multiGet(List<List<Object>> keys)
- Specified by:
multiGet in interface IBackingMap<T>
multiPut
public void multiPut(List<List<Object>> keys,
List<T> values)
- Specified by:
multiPut in interface IBackingMap<T>
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.