public class TierInfoCache extends Object implements TierInfoProvider
| Constructor and Description |
|---|
TierInfoCache(TierInfoFetcher tierInfoFetcher)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getAllTierNames()
Returns set of all tier names.
|
TierInfo |
getDefaultTierInfo()
Returns default tier information.
|
TierInfo |
getTierInfo(String tierName)
Returns tier information for the specified tier name.
|
TierInfo |
getTierInfoForTable(TableInfo tableInfo)
Returns tier information for the specified table.
|
public TierInfoCache(TierInfoFetcher tierInfoFetcher)
tierInfoFetcher - fetches tier info from Picodata cluster for cache initializationpublic TierInfo getTierInfo(String tierName)
getTierInfo in interface TierInfoProvidertierName - the name of the tier to retrievenull if no tier with the
specified name existspublic TierInfo getTierInfoForTable(TableInfo tableInfo) throws SQLException
TierInfoProvidergetTierInfoForTable in interface TierInfoProvidertableInfo - the table metadatanull if no tier exists for
the specified tableSQLException - if requested table is globally distributedpublic TierInfo getDefaultTierInfo()
getDefaultTierInfo in interface TierInfoProvidernull
if default tier doesn't existpublic Set<String> getAllTierNames()
getAllTierNames in interface TierInfoProviderCopyright © 2026 Picodata. All rights reserved.