Interface ReadOnlyStringMetadataCache
-
- All Known Subinterfaces:
WritableStringMetadataCache
- All Known Implementing Classes:
StringMetadataCache
public interface ReadOnlyStringMetadataCacheThe 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 booleancontains(Integer stringId)Determines if a string Id is contained in the cache.org.apache.storm.metricstore.rocksdb.StringMetadataget(String s)Get the string metadata from the cache.StringgetMetadataString(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
-
-