Interface QueryController
-
- All Known Implementing Classes:
QueryContext
public interface QueryController
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getBlockId(long time)
Returns which block the time belongs to.long
getBlockSize()
Returns the size of the blocks in milliseconds.long
getQueryEnd()
java.lang.String
getQueryId()
TagHistoryQueryParams
getQueryParameters()
The parameters for the current query.long
getQueryStart()
-
-
-
Method Detail
-
getQueryId
java.lang.String getQueryId()
-
getBlockId
long getBlockId(long time)
Returns which block the time belongs to. Generally, will be some multiple of the block window on top of the start time. There is one special case that we accommodate: seed values. Those belong to a block BEFORE the start time. For that reason, we calculate everything off of the start time, and not the block end.
-
getBlockSize
long getBlockSize()
Returns the size of the blocks in milliseconds. Will be 0 if the results should be raw data.- Returns:
- time in milliseconds covered by each block.
-
getQueryStart
long getQueryStart()
-
getQueryEnd
long getQueryEnd()
-
getQueryParameters
TagHistoryQueryParams getQueryParameters()
The parameters for the current query.
-
-