Class BroadcastDatasourceLoadingSpec
java.lang.Object
org.apache.druid.server.coordination.BroadcastDatasourceLoadingSpec
This class defines the spec for loading of broadcast datasources for a given task. It contains 2 fields:
mode: This mode defines whether broadcastDatasources need to be loaded for the given task, or not. It can take 3 values:- ALL: Load all the broadcast datasources.
- NONE: Load no broadcast datasources.
- ONLY_REQUIRED: Load only the broadcast datasources defined in broadcastDatasourcesToLoad
broadcastDatasourcesToLoad: Defines the broadcastDatasources to load when the broadcastDatasourceLoadingMode is set to ONLY_REQUIRED.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BroadcastDatasourceLoadingSpecstatic final Stringstatic final Stringstatic final BroadcastDatasourceLoadingSpec -
Method Summary
Modifier and TypeMethodDescriptioncreateFromContext(Map<String, Object> context, BroadcastDatasourceLoadingSpec defaultSpec) booleancom.google.common.collect.ImmutableSet<String>getMode()inthashCode()Creates a BroadcastSegmentLoadingSpec which loads only the broadcast datasources present in the given set.toString()
-
Field Details
-
CTX_BROADCAST_DATASOURCE_LOADING_MODE
- See Also:
-
CTX_BROADCAST_DATASOURCES_TO_LOAD
- See Also:
-
ALL
-
NONE
-
-
Method Details
-
loadOnly
Creates a BroadcastSegmentLoadingSpec which loads only the broadcast datasources present in the given set. -
getMode
-
getBroadcastDatasourcesToLoad
- Returns:
- A non-null immutable set of broadcast datasource names when
modeis ONLY_REQUIRED, null otherwise.
-
createFromContext
public static BroadcastDatasourceLoadingSpec createFromContext(Map<String, Object> context, BroadcastDatasourceLoadingSpec defaultSpec) -
toString
-
equals
-
hashCode
public int hashCode()
-