public class LookupReferencesManager extends Object
LookupExtractorFactory
references manager.
It allows basic operations fetching, listing, adding and deleting of LookupExtractor
objects
It is be used by queries to fetch the lookup reference.
It is used by Lookup configuration manager to add/remove or list lookups configuration via HTTP or other protocols.
It does periodic snap shot of the list of lookup in order to bootstrap nodes after restart.Constructor and Description |
---|
LookupReferencesManager(LookupConfig lookupConfig,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
DruidLeaderClient druidLeaderClient,
io.druid.query.lookup.LookupListeningAnnouncerConfig lookupListeningAnnouncerConfig) |
Modifier and Type | Method and Description |
---|---|
void |
add(String lookupName,
LookupExtractorFactoryContainer lookupExtractorFactoryContainer) |
LookupExtractorFactoryContainer |
get(String lookupName) |
LookupsState<LookupExtractorFactoryContainer> |
getAllLookupsState() |
void |
remove(String lookupName) |
void |
start() |
void |
stop() |
@Inject public LookupReferencesManager(LookupConfig lookupConfig, com.fasterxml.jackson.databind.ObjectMapper objectMapper, DruidLeaderClient druidLeaderClient, io.druid.query.lookup.LookupListeningAnnouncerConfig lookupListeningAnnouncerConfig)
public void start()
public void stop()
public void add(String lookupName, LookupExtractorFactoryContainer lookupExtractorFactoryContainer)
public void remove(String lookupName)
@Nullable public LookupExtractorFactoryContainer get(String lookupName)
public LookupsState<LookupExtractorFactoryContainer> getAllLookupsState()
Copyright © 2011–2018. All rights reserved.