Package io.prestosql.execution
Class QueryIdGenerator
- java.lang.Object
-
- io.prestosql.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 QueryId
createNextQueryId()
Generate next queryId using the following format: YYYYMMdd_HHmmss_index_coordIdString
getCoordinatorId()
protected long
nowInMillis()
-
-
-
Method Detail
-
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 reaches 99,999, and the coordId is a randomly generated when this instance is created.
-
nowInMillis
protected long nowInMillis()
-
-