getOLAPCacheEngineStat#

swordfish.function.getOLAPCacheEngineStat()#

Get the status of the OLAP cache engine on the current node. The function can only be called on the data node.

Returns:

A table containing the following columns:

  • chunkId: the chunk ID.

  • physicalName: the physical name of the table to which the chunk belongs.

  • timeSinceLastWrite: the time elapsed (in milliseconds) since last write.

  • cachedRowsOfCompletedTxn: the number of cached records of completed transactions.

  • cachedRowsOfUncompletedTxn: the number of cached records of uncompleted transactions. For each chunk, only the last transaction may not have been completed.

  • cachedMemOfCompletedTxn: the memory usage (in Bytes) of completed transactions.

  • cachedMemOfUncompletedTxn: the memory usage (in Bytes) of uncompleted transactions.

  • cachedTids: list of transaction IDs (tid).

Return type:

Constant