Class InMemoryWindowsStore
- java.lang.Object
-
- org.apache.storm.trident.windowing.InMemoryWindowsStore
-
- All Implemented Interfaces:
Serializable
,WindowsStore
public class InMemoryWindowsStore extends Object implements WindowsStore, Serializable
Inmemory store implementation ofWindowsStore
which can be backed by persistent store.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.storm.trident.windowing.WindowsStore
WindowsStore.Entry
-
-
Field Summary
-
Fields inherited from interface org.apache.storm.trident.windowing.WindowsStore
KEY_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description InMemoryWindowsStore()
InMemoryWindowsStore(int maxSize, WindowsStore backingStore)
Creates a new in-memory window store.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
get(String key)
Iterable<Object>
get(List<String> keys)
Iterable<String>
getAllKeys()
void
put(String key, Object value)
void
putAll(Collection<WindowsStore.Entry> entries)
void
remove(String key)
void
removeAll(Collection<String> keys)
void
shutdown()
String
toString()
-
-
-
Constructor Detail
-
InMemoryWindowsStore
public InMemoryWindowsStore()
-
InMemoryWindowsStore
public InMemoryWindowsStore(int maxSize, WindowsStore backingStore)
Creates a new in-memory window store.- Parameters:
maxSize
- maximum size of inmemory storebackingStore
- backing store containing the entries
-
-
Method Detail
-
get
public Object get(String key)
- Specified by:
get
in interfaceWindowsStore
-
getAllKeys
public Iterable<String> getAllKeys()
- Specified by:
getAllKeys
in interfaceWindowsStore
-
put
public void put(String key, Object value)
- Specified by:
put
in interfaceWindowsStore
-
putAll
public void putAll(Collection<WindowsStore.Entry> entries)
- Specified by:
putAll
in interfaceWindowsStore
-
remove
public void remove(String key)
- Specified by:
remove
in interfaceWindowsStore
-
removeAll
public void removeAll(Collection<String> keys)
- Specified by:
removeAll
in interfaceWindowsStore
-
shutdown
public void shutdown()
- Specified by:
shutdown
in interfaceWindowsStore
-
-