Package com.fauna.response
Class QueryStats
- java.lang.Object
-
- com.fauna.response.QueryStats
-
public final class QueryStats extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description QueryStats(int computeOps, int readOps, int writeOps, int queryTimeMs, int contentionRetries, int storageBytesRead, int storageBytesWrite, int processingTimeMs, java.util.List<java.lang.String> rateLimitsHit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getComputeOps()
Gets the Transactional Compute Operations (TCOs) recorded.int
getContentionRetries()
Gets the number of retries for transaction contention.int
getProcessingTimeMs()
Gets the event processing time in milliseconds.int
getQueryTimeMs()
Gets the query time in milliseconds.java.util.List<java.lang.String>
getRateLimitsHit()
Gets a list of operation types that exceeded their plan throughput limits.int
getReadOps()
Gets the Transactional Read Operations (TROs) recorded.int
getStorageBytesRead()
Gets the amount of data read from storage in bytes.int
getStorageBytesWrite()
Gets the amount of data written to storage in bytes.int
getWriteOps()
Gets the Transactional Write Operations (TWOs) recorded.static QueryStats
parseStats(com.fasterxml.jackson.core.JsonParser parser)
Parse QueryStats from a JsonParser.java.lang.String
toString()
-
-
-
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 transactionsstorageBytesRead
- 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.
-
getReadOps
public int getReadOps()
Gets the Transactional Read Operations (TROs) recorded.- Returns:
- An int representing the read ops.
-
getWriteOps
public int getWriteOps()
Gets the Transactional Write Operations (TWOs) recorded.- Returns:
- An int representing the write 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()
Gets the number of retries for transaction contention.- 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 classjava.lang.Object
-
-