LoadTask.TaskFailureCallback, LoadTask.TaskHttpErrorCallbackdelay, future, isPeriodic, loaderName, period| Constructor and Description | 
|---|
RegisteredLookupMetadataLoadTask(DruidWebService druidClient,
                                DimensionDictionary dimensionDictionary)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected SuccessCallback | 
buildLookupSuccessCallback()
Returns a callback that has actions on lookup metadata from a successful Druid response. 
 | 
Set<String> | 
getLookupTiers()
Returns a list of configured lookup tiers. 
 | 
Set<String> | 
getPendingLookups()
Returns a set of lookup namespaces that have not been loaded to Druid yet. 
 | 
void | 
run()  | 
void | 
setLookupTiers(Set<String> lookupTiers)
Updates list of configured lookup tiers. 
 | 
getDefinedDelay, getDefinedPeriod, getErrorCallback, getFailureCallback, getFuture, getName, isPeriodic, toStringpublic RegisteredLookupMetadataLoadTask(DruidWebService druidClient, DimensionDictionary dimensionDictionary)
druidClient - The client to query Druid coordinatordimensionDictionary - A DimensionDictionary that is used
 to obtain a list of lookups in Fili.public void run()
public Set<String> getLookupTiers()
See http://druid.io/docs/latest/querying/lookups.html for details on "tier".
public void setLookupTiers(Set<String> lookupTiers)
This method becomes useful when a new look up tier is added at runtime.
lookupTiers - A new list of configured lookup tierspublic Set<String> getPendingLookups()
protected SuccessCallback buildLookupSuccessCallback()
 The callback obtains a complete list of configured lookups from Druid coordinator, compares this list against
 the list of lookups configured in Fili, and finds all lookup namespace names that are either not loaded yet in
 Druid or does not exist in Druid at all. These namespaces can be retrieved later by calling
 getPendingLookups().
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.