org.openspaces.persistency.cassandra.meta
Class ColumnFamilyMetadataCache
java.lang.Object
org.openspaces.persistency.cassandra.meta.ColumnFamilyMetadataCache
public class ColumnFamilyMetadataCache
- extends Object
A simple ConcurrentMap
based cache to store ColumnFamilyMetadata
in-memory.
- Since:
- 9.1.1
- Author:
- Dan Kilman
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColumnFamilyMetadataCache
public ColumnFamilyMetadataCache()
getColumnFamilyMetadata
public ColumnFamilyMetadata getColumnFamilyMetadata(String typeName)
- Parameters:
typeName
- The type name matching to requested ColumnFamilyMetadata
- Returns:
- the matching
ColumnFamilyMetadata
or null if not found.
addColumnFamilyMetadata
public void addColumnFamilyMetadata(String typeName,
ColumnFamilyMetadata metadata)
- Adds the given
ColumnFamilyMetadata
using the typeName as key.
Will override entries if they already exist.
- Parameters:
typeName
- the type name.metadata
- the metadata.
getColumnFamiliesMetadata
public ConcurrentMap<String,ColumnFamilyMetadata> getColumnFamiliesMetadata()
- Returns:
- A map from type name to column family metadata of all currently in-memory
ColumnFamilyMetadata
.
Copyright © GigaSpaces.