Class BrokerRequestIdGenerator
- java.lang.Object
-
- org.apache.pinot.broker.requesthandler.BrokerRequestIdGenerator
-
public class BrokerRequestIdGenerator extends Object
An ID generator to produce a global unique identifier for each query, used in v1/v2 engine for tracking and inter-stage communication(v2 only). It's guaranteed by:- Using a mask computed using the hash-code of the broker-id to ensure two brokers don't arrive at the same requestId. This mask becomes the most significant 9 digits (in base-10).
- Using a auto-incrementing counter for the least significant 9 digits (in base-10).
-
-
Constructor Summary
Constructors Constructor Description BrokerRequestIdGenerator(String brokerId)
-
-
-
Constructor Detail
-
BrokerRequestIdGenerator
public BrokerRequestIdGenerator(String brokerId)
-
-