Class 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:
    1. 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).
    2. Using a auto-incrementing counter for the least significant 9 digits (in base-10).
    • Constructor Detail

      • BrokerRequestIdGenerator

        public BrokerRequestIdGenerator​(String brokerId)
    • Method Detail

      • get

        public long get()