Package io.trino.execution
Class QueryIdGenerator
- java.lang.Object
-
- io.trino.execution.QueryIdGenerator
-
public class QueryIdGenerator extends Object
-
-
Constructor Summary
Constructors Constructor Description QueryIdGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryIdcreateNextQueryId()Generate next queryId using the following format:YYYYMMDD_hhmmss_index_coordIdStringgetCoordinatorId()protected longnowInMillis()
-
-
-
Method Detail
-
getCoordinatorId
public String getCoordinatorId()
-
createNextQueryId
public QueryId createNextQueryId()
Generate next queryId using the following format:YYYYMMDD_hhmmss_index_coordIdindexrolls at the start of every day or when it is close to reaching99,999.coordIdis a randomly generated when this instance is created.
-
nowInMillis
protected long nowInMillis()
-
-