Package org.apache.druid.client
Class SegmentServerSelector
java.lang.Object
org.apache.druid.java.util.common.Pair<ServerSelector,SegmentDescriptor>
org.apache.druid.client.SegmentServerSelector
Given a
SegmentDescriptor, get a ServerSelector to use to pick a DruidServer to query.
Used by CachingClusteredClient on the broker to fan out queries to historical and realtime data. Used
by LocalQuerySegmentWalker on the broker for on broker queries-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSegmentServerSelector(ServerSelector server, SegmentDescriptor segment) This is for a segment hosted on a remote server, whereServerSelectormay be used to pick aDruidServerto query.SegmentServerSelector(SegmentDescriptor segment) This is for a segment hosted locally -
Method Summary
Modifier and TypeMethodDescriptionThis may be null ifSegmentDescriptoris locally available, but will definitely not be null for segments which must be queried remotely (e.g.
-
Constructor Details
-
SegmentServerSelector
This is for a segment hosted on a remote server, whereServerSelectormay be used to pick aDruidServerto query. -
SegmentServerSelector
This is for a segment hosted locally
-
-
Method Details
-
getServer
This may be null ifSegmentDescriptoris locally available, but will definitely not be null for segments which must be queried remotely (e.g.CachingClusteredClient) -
getSegmentDescriptor
-