public class ColumnFamilyMetadataCache extends Object
ConcurrentMap
based cache to store ColumnFamilyMetadata
in-memory.Constructor and Description |
---|
ColumnFamilyMetadataCache() |
Modifier and Type | Method and Description |
---|---|
void |
addColumnFamilyMetadata(String typeName,
ColumnFamilyMetadata metadata)
Adds the given
ColumnFamilyMetadata using the typeName as key. |
ConcurrentMap<String,ColumnFamilyMetadata> |
getColumnFamiliesMetadata() |
ColumnFamilyMetadata |
getColumnFamilyMetadata(String typeName) |
public ColumnFamilyMetadata getColumnFamilyMetadata(String typeName)
typeName
- The type name matching to requested ColumnFamilyMetadata
ColumnFamilyMetadata
or null if not found.public void addColumnFamilyMetadata(String typeName, ColumnFamilyMetadata metadata)
ColumnFamilyMetadata
using the typeName as key. Will override entries
if they already exist.typeName
- the type name.metadata
- the metadata.public ConcurrentMap<String,ColumnFamilyMetadata> getColumnFamiliesMetadata()
ColumnFamilyMetadata
.Copyright © GigaSpaces.