Class QueryStats


  • public final class QueryStats
    extends java.lang.Object
    • Constructor Detail

      • QueryStats

        public QueryStats​(int computeOps,
                          int readOps,
                          int writeOps,
                          int queryTimeMs,
                          int contentionRetries,
                          int storageBytesRead,
                          int storageBytesWrite,
                          int processingTimeMs,
                          java.util.List<java.lang.String> rateLimitsHit)
        Parameters:
        computeOps - Transactional Compute Operations (TCOs) consumed by the request.
        readOps - Transactional Read Operations (TROs) consumed by the request.
        writeOps - Transactional Write Operations (TROs) consumed by the request.
        queryTimeMs - Query run time for the request in milliseconds.
        contentionRetries - Number of retries for contended transactions
        storageBytesRead - Amount of data read from storage, in bytes.
        storageBytesWrite - Amount of data written to storage, in bytes.
        processingTimeMs - Aggregate event processing time in milliseconds. Only applies to Event Feed and Event Stream requests.
        rateLimitsHit - Operation types that exceeded plan throughput limits.
    • Method Detail

      • parseStats

        public static QueryStats parseStats​(com.fasterxml.jackson.core.JsonParser parser)
                                     throws java.io.IOException
        Parse QueryStats from a JsonParser.
        Parameters:
        parser - the JsonParser to consume
        Returns:
        a QueryStats object containing the parsed stats
        Throws:
        java.io.IOException - thrown from the JsonParser
      • getComputeOps

        public int getComputeOps()
        Gets the Transactional Compute Operations (TCOs) recorded.
        Returns:
        An int representing the compute ops.
      • getQueryTimeMs

        public int getQueryTimeMs()
        Gets the query time in milliseconds.
        Returns:
        An int representing the query time in milliseconds.
      • getProcessingTimeMs

        public int getProcessingTimeMs()
        Gets the event processing time in milliseconds. Applies to Event Feeds and Event Stream requests only.
        Returns:
        An int representing the processing time in milliseconds.
      • getContentionRetries

        public int getContentionRetries()
        Returns:
        An int representing the number of transaction contention retries.
      • getStorageBytesRead

        public int getStorageBytesRead()
        Gets the amount of data read from storage in bytes.
        Returns:
        An int representing the number of bytes read.
      • getStorageBytesWrite

        public int getStorageBytesWrite()
        Gets the amount of data written to storage in bytes.
        Returns:
        An int representing the number of bytes written.
      • getRateLimitsHit

        public java.util.List<java.lang.String> getRateLimitsHit()
        Gets a list of operation types that exceeded their plan throughput limits.
        Returns:
        A list of operation types that exceeded their throughput limit.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object