Package org.apache.druid.query.lookup
Class LookupReferencesManager
java.lang.Object
org.apache.druid.query.lookup.LookupReferencesManager
- All Implemented Interfaces:
LookupExtractorFactoryContainerProvider
public class LookupReferencesManager
extends Object
implements 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 Summary
ConstructorsConstructorDescriptionLookupReferencesManager(LookupConfig lookupConfig, com.fasterxml.jackson.databind.ObjectMapper objectMapper, CoordinatorClient coordinatorClient, org.apache.druid.query.lookup.LookupListeningAnnouncerConfig lookupListeningAnnouncerConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(String lookupName, LookupExtractorFactoryContainer lookupExtractorFactoryContainer) getCanonicalLookupName(String lookupName) voidremove(String lookupName, LookupExtractorFactoryContainer loadedContainer) voidstart()voidstop()void
-
Constructor Details
-
LookupReferencesManager
@Inject public LookupReferencesManager(LookupConfig lookupConfig, com.fasterxml.jackson.databind.ObjectMapper objectMapper, CoordinatorClient coordinatorClient, org.apache.druid.query.lookup.LookupListeningAnnouncerConfig lookupListeningAnnouncerConfig)
-
-
Method Details
-
start
- Throws:
IOException
-
stop
public void stop() -
add
-
remove
-
submitAsyncLookupTask
-
get
- Specified by:
getin interfaceLookupExtractorFactoryContainerProvider
-
getAllLookupNames
- Specified by:
getAllLookupNamesin interfaceLookupExtractorFactoryContainerProvider
-
getCanonicalLookupName
- Specified by:
getCanonicalLookupNamein interfaceLookupExtractorFactoryContainerProvider
-