public class QueryContext extends java.util.HashMap<java.lang.String,java.lang.Object> implements QueryController
Constructor and Description |
---|
QueryContext(QueryController controller,
LoggerEx logger) |
Modifier and Type | Method and Description |
---|---|
long |
getBlockId(long time)
Returns which block the time belongs to.
|
long |
getBlockSize()
Returns the size of the blocks in milliseconds.
|
LoggerEx |
getLogger()
This returns a logger that can be used to log information about processing.
|
long |
getQueryEnd() |
java.lang.String |
getQueryId() |
TagHistoryQueryParams |
getQueryParameters()
The parameters for the current query.
|
long |
getQueryStart() |
void |
logDebug(java.lang.String message,
java.lang.Object... args) |
void |
logInfo(java.lang.String message,
java.lang.Object... args) |
void |
logTrace(java.lang.String message,
java.lang.Object... args) |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
public QueryContext(QueryController controller, LoggerEx logger)
public LoggerEx getLogger()
public void logInfo(java.lang.String message, java.lang.Object... args)
public void logDebug(java.lang.String message, java.lang.Object... args)
public void logTrace(java.lang.String message, java.lang.Object... args)
public java.lang.String getQueryId()
getQueryId
in interface QueryController
public long getBlockId(long time)
QueryController
getBlockId
in interface QueryController
public long getBlockSize()
QueryController
getBlockSize
in interface QueryController
public long getQueryStart()
getQueryStart
in interface QueryController
public long getQueryEnd()
getQueryEnd
in interface QueryController
public TagHistoryQueryParams getQueryParameters()
QueryController
getQueryParameters
in interface QueryController