Package com.linkedin.alpini.router.api
Class BroadcastScatterGatherRequest<H,K>
- java.lang.Object
-
- com.linkedin.alpini.router.api.ScatterGatherRequest<H,K>
-
- com.linkedin.alpini.router.api.BroadcastScatterGatherRequest<H,K>
-
public class BroadcastScatterGatherRequest<H,K> extends ScatterGatherRequest<H,K>
This type of specializedScatterGatherRequest
does not use keys for routing, and carry some extra state. We have a separate subclass for it to avoid carrying extra overhead in allScatterGatherRequest
instances.
-
-
Constructor Summary
Constructors Constructor Description BroadcastScatterGatherRequest(java.util.List host)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPartitionNameToQuery(java.lang.String partitionName)
java.util.Set<java.lang.String>
getPartitionNamesToQuery()
For table level query requests, return the list of partitions that should be queried for this request.-
Methods inherited from class com.linkedin.alpini.router.api.ScatterGatherRequest
equals, getHosts, getPartitionKeys, hashCode, removeHost, toString
-
-
-
-
Method Detail
-
addPartitionNameToQuery
public void addPartitionNameToQuery(java.lang.String partitionName)
-
getPartitionNamesToQuery
public java.util.Set<java.lang.String> getPartitionNamesToQuery()
For table level query requests, return the list of partitions that should be queried for this request.- Overrides:
getPartitionNamesToQuery
in classScatterGatherRequest<H,K>
-
-