Interface ReadOnlyStringMetadataCache
- All Known Subinterfaces:
WritableStringMetadataCache
- All Known Implementing Classes:
StringMetadataCache
public interface ReadOnlyStringMetadataCache
The read-only interface to a StringMetadataCache allowed to be used by any thread.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines if a string Id is contained in the cache.org.apache.storm.metricstore.rocksdb.StringMetadata
Get the string metadata from the cache.getMetadataString
(Integer stringId) Returns the string matching the string Id if in the cache.
-
Method Details
-
get
Get the string metadata from the cache.- Parameters:
s
- The string to look for- Returns:
- the metadata associated with the string or null if not found
-
getMetadataString
Returns the string matching the string Id if in the cache.- Parameters:
stringId
- The string Id to check- Returns:
- the associated string if the Id is in the cache, null otherwise
-
contains
Determines if a string Id is contained in the cache.- Parameters:
stringId
- The string Id to check- Returns:
- true if the Id is in the cache, false otherwise
-