public class QueryIdGenerator extends Object
| Constructor and Description |
|---|
QueryIdGenerator() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
getCoordinatorId() |
protected long |
nowInMillis() |
public String getCoordinatorId()
public QueryId createNextQueryId()
protected long nowInMillis()
Copyright © 2012–2019. All rights reserved.