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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
contains(Integer stringId)
Determines if a string Id is contained in the cache.org.apache.storm.metricstore.rocksdb.StringMetadata
get(String s)
Get the string metadata from the cache.String
getMetadataString(Integer stringId)
Returns the string matching the string Id if in the cache.
-
-
-
Method Detail
-
get
org.apache.storm.metricstore.rocksdb.StringMetadata get(String s)
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
String getMetadataString(Integer stringId)
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
boolean contains(Integer stringId)
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
-
-