Class LookupLoadingSpec
java.lang.Object
org.apache.druid.server.lookup.cache.LookupLoadingSpec
This class defines the spec for loading of lookups for a given task. It contains 2 fields:
mode: This mode defines whether lookups need to be loaded for the given task, or not. It can take 3 values:- ALL: Load all the lookups.
- NONE: Load no lookups.
- ONLY_REQUIRED: Load only the lookups defined in lookupsToLoad
lookupsToLoad: Defines the lookups to load when the lookupLoadingMode is set to ONLY_REQUIRED.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LookupLoadingSpecstatic final Stringstatic final Stringstatic final LookupLoadingSpec -
Method Summary
Modifier and TypeMethodDescriptionstatic LookupLoadingSpeccreateFromContext(Map<String, Object> context, LookupLoadingSpec defaultSpec) booleancom.google.common.collect.ImmutableSet<String>getMode()inthashCode()static LookupLoadingSpecCreates a LookupLoadingSpec which loads only the lookups present in the given set.toString()
-
Field Details
-
CTX_LOOKUP_LOADING_MODE
- See Also:
-
CTX_LOOKUPS_TO_LOAD
- See Also:
-
ALL
-
NONE
-
-
Method Details
-
loadOnly
Creates a LookupLoadingSpec which loads only the lookups present in the given set. -
getMode
-
getLookupsToLoad
- Returns:
- A non-null immutable set of lookup names when
modeis ONLY_REQUIRED, null otherwise.
-
createFromContext
public static LookupLoadingSpec createFromContext(Map<String, Object> context, LookupLoadingSpec defaultSpec) -
toString
-
equals
-
hashCode
public int hashCode()
-