Class LookupReferencesManager

  • All Implemented Interfaces:
    org.apache.druid.query.lookup.LookupExtractorFactoryContainerProvider

    public class LookupReferencesManager
    extends Object
    implements org.apache.druid.query.lookup.LookupExtractorFactoryContainerProvider
    This class provide a basic LookupExtractorFactory references manager. It allows basic operations fetching, listing, adding and deleting of LookupExtractor objects, and can take periodic snap shot of the loaded lookup extractor specifications in order to bootstrap nodes after restart. It also implements LookupExtractorFactoryContainerProvider, to supply queries and indexing transformations with a reference to a LookupExtractorFactoryContainer. This class is a companion of LookupCoordinatorManager, which communicates with LookupReferencesManager through LookupListeningResource.
    • Constructor Detail

      • LookupReferencesManager

        @Inject
        public LookupReferencesManager​(org.apache.druid.query.lookup.LookupConfig lookupConfig,
                                       com.fasterxml.jackson.databind.ObjectMapper objectMapper,
                                       DruidLeaderClient druidLeaderClient,
                                       org.apache.druid.query.lookup.LookupListeningAnnouncerConfig lookupListeningAnnouncerConfig)
    • Method Detail

      • stop

        public void stop()
      • add

        public void add​(String lookupName,
                        org.apache.druid.query.lookup.LookupExtractorFactoryContainer lookupExtractorFactoryContainer)
      • remove

        public void remove​(String lookupName,
                           org.apache.druid.query.lookup.LookupExtractorFactoryContainer loadedContainer)
      • submitAsyncLookupTask

        public void submitAsyncLookupTask​(Runnable task)
      • get

        public Optional<org.apache.druid.query.lookup.LookupExtractorFactoryContainer> get​(String lookupName)
        Specified by:
        get in interface org.apache.druid.query.lookup.LookupExtractorFactoryContainerProvider
      • getAllLookupNames

        public Set<String> getAllLookupNames()
        Specified by:
        getAllLookupNames in interface org.apache.druid.query.lookup.LookupExtractorFactoryContainerProvider