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 SummaryModifier and TypeMethodDescriptionbooleanDetermines if a string Id is contained in the cache.org.apache.storm.metricstore.rocksdb.StringMetadataGet the string metadata from the cache.getMetadataString(Integer stringId) Returns the string matching the string Id if in the cache.
- 
Method Details- 
getGet 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
 
- 
getMetadataStringReturns 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
 
- 
containsDetermines 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
 
 
-