Class QueryIdGenerator

java.lang.Object
io.trino.execution.QueryIdGenerator

public class QueryIdGenerator extends Object
  • Constructor Details

    • QueryIdGenerator

      public QueryIdGenerator()
  • Method Details

    • getCoordinatorId

      public String getCoordinatorId()
    • createNextQueryId

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

      index rolls at the start of every day or when it is close to reaching 99,999. coordId is a randomly generated when this instance is created.

    • nowInMillis

      protected long nowInMillis()