Class QueryIdGenerator


  • public class QueryIdGenerator
    extends java.lang.Object
    • Constructor Detail

      • QueryIdGenerator

        public QueryIdGenerator()
    • Method Detail

      • getCoordinatorId

        public java.lang.String getCoordinatorId()
      • createNextQueryId

        public QueryId createNextQueryId()
        Generate next queryId using the following format: YYYYMMDD_hhmmss_index_dataNodeId

        index rolls at the start of every day or when it is close to reaching 99,999. dataNodeId is a unique id generated by config node when this data node is created.

      • nowInMillis

        protected long nowInMillis()