public static class MySqlSqlStats.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
MySqlSqlStats |
build() |
MySqlSqlStats.Builder |
commandType(String commandType)
Type of statement such as select, update or delete.
|
MySqlSqlStats.Builder |
copy(MySqlSqlStats model) |
MySqlSqlStats.Builder |
cpuLatencyInPs(Long cpuLatencyInPs)
The total time spent on CPU (in picoseconds) for the current thread.
|
MySqlSqlStats.Builder |
digest(String digest)
Unique SQL ID Digest for a MySql Statement.
|
MySqlSqlStats.Builder |
errCount(Long errCount)
The total number of errors produced by occurrences of the statement.
|
MySqlSqlStats.Builder |
execCount(Long execCount)
The total number of times the statement has executed.
|
MySqlSqlStats.Builder |
execCountSecondary(Long execCountSecondary)
The total number of times a query was processed on the secondary engine (HEATWAVE) for
occurrences of this statement Count.
|
MySqlSqlStats.Builder |
lockLatencyInPs(Long lockLatencyInPs)
The total time waiting (in picoseconds) for locks by timed occurrences of the statement.
|
MySqlSqlStats.Builder |
maxControlledMemoryInBytes(Long maxControlledMemoryInBytes)
The maximum amount of controlled memory (in bytes) used by the statement.
|
MySqlSqlStats.Builder |
maxTotalMemoryInBytes(Long maxTotalMemoryInBytes)
The maximum amount of memory (in bytes) used by the statement.
|
MySqlSqlStats.Builder |
noGoodIndexUsedCount(Long noGoodIndexUsedCount)
The number of occurences of the statement where the server found no good index to use
Count
|
MySqlSqlStats.Builder |
noIndexUsedCount(Long noIndexUsedCount)
The number of occurences of the statement which performed a table scan without using an
index Count
|
MySqlSqlStats.Builder |
perfSchemaUsedPercent(Long perfSchemaUsedPercent)
Percent of SQL statements in the perf schema table relative to max or overflow count set
in @@GLOBAL.performance_schema_digests_size.
|
MySqlSqlStats.Builder |
rowsAffected(Long rowsAffected)
The total number of rows affected by occurrences of the statement.
|
MySqlSqlStats.Builder |
rowsExamined(Long rowsExamined)
The total number of rows read from storage engines by occurrences of the statement.
|
MySqlSqlStats.Builder |
rowsSent(Long rowsSent)
The total number of rows returned by occurrences of the statement.
|
MySqlSqlStats.Builder |
rowsSorted(Long rowsSorted)
The total number of rows sorted by occurrences of the statement.
|
MySqlSqlStats.Builder |
schemaName(String schemaName)
Name of Database Schema.
|
MySqlSqlStats.Builder |
selectFullJoin(Long selectFullJoin)
The total number of joins that perform table scans because they do not use indexes by
occurrences of the statement.
|
MySqlSqlStats.Builder |
selectFullRangeJoin(Long selectFullRangeJoin)
The total number of joins that used a range search on a reference table by occurrences of
the statement
|
MySqlSqlStats.Builder |
selectRange(Long selectRange)
The total number of joins that used ranges on the first table by occurrences of the
statement.
|
MySqlSqlStats.Builder |
selectRangeCheck(Long selectRangeCheck)
The total number of joins without keys that check for key usage after each row by
occurrences of the statement.
|
MySqlSqlStats.Builder |
selectScan(Long selectScan)
The total number of joins that did a full scan of the first table by occurrences of the
statement Count
|
MySqlSqlStats.Builder |
sortMergePasses(Long sortMergePasses)
The total number of sort merge passes by occurrences of the statement.
|
MySqlSqlStats.Builder |
sortRange(Long sortRange)
The total number of sorts that were done using ranges by occurrences of the statement.
|
MySqlSqlStats.Builder |
sortScan(Long sortScan)
The total number of sorts that were done by scanning the table by occurrences of the
statement.
|
MySqlSqlStats.Builder |
timeCollected(Date timeCollected)
Collection timestamp.
|
MySqlSqlStats.Builder |
timeFirstSeen(Date timeFirstSeen)
The time at which statement was first seen.
|
MySqlSqlStats.Builder |
timeLastSeen(Date timeLastSeen)
The time at which statement was most recently seen for all occurrences of the statement.
|
MySqlSqlStats.Builder |
tmpDiskTables(Long tmpDiskTables)
The total number of internal on-disk temporary tables created by occurrences of the
statement.
|
MySqlSqlStats.Builder |
tmpTables(Long tmpTables)
The total number of internal in-memory temporary tables created by occurrences of the
statement Count
|
MySqlSqlStats.Builder |
totalLatencyInPs(Long totalLatencyInPs)
The total wait time (in picoseconds) of timed occurrences of the statement.
|
MySqlSqlStats.Builder |
totalRows(Long totalRows)
Total number of SQL statements used in collection ranking calculation.
|
MySqlSqlStats.Builder |
warnCount(Long warnCount)
The total number of warnings produced by occurrences of the statement.
|
public MySqlSqlStats.Builder digest(String digest)
Unique SQL ID Digest for a MySql Statement. Example: "c20fcea11911be36651b7ca7bd3712d4ed9ac1134cee9c6620039e1fb13b5eff"
digest
- the value to setpublic MySqlSqlStats.Builder timeCollected(Date timeCollected)
Collection timestamp. Example: "2020-03-31T00:00:00.000Z"
timeCollected
- the value to setpublic MySqlSqlStats.Builder commandType(String commandType)
Type of statement such as select, update or delete.
commandType
- the value to setpublic MySqlSqlStats.Builder totalRows(Long totalRows)
Total number of SQL statements used in collection ranking calculation.
totalRows
- the value to setpublic MySqlSqlStats.Builder perfSchemaUsedPercent(Long perfSchemaUsedPercent)
Percent of SQL statements in the perf schema table relative to max or overflow count set in @@GLOBAL.performance_schema_digests_size.
perfSchemaUsedPercent
- the value to setpublic MySqlSqlStats.Builder schemaName(String schemaName)
Name of Database Schema. Example: "performance_schema"
schemaName
- the value to setpublic MySqlSqlStats.Builder execCount(Long execCount)
The total number of times the statement has executed.
execCount
- the value to setpublic MySqlSqlStats.Builder totalLatencyInPs(Long totalLatencyInPs)
The total wait time (in picoseconds) of timed occurrences of the statement.
totalLatencyInPs
- the value to setpublic MySqlSqlStats.Builder lockLatencyInPs(Long lockLatencyInPs)
The total time waiting (in picoseconds) for locks by timed occurrences of the statement.
lockLatencyInPs
- the value to setpublic MySqlSqlStats.Builder errCount(Long errCount)
The total number of errors produced by occurrences of the statement.
errCount
- the value to setpublic MySqlSqlStats.Builder warnCount(Long warnCount)
The total number of warnings produced by occurrences of the statement.
warnCount
- the value to setpublic MySqlSqlStats.Builder rowsAffected(Long rowsAffected)
The total number of rows affected by occurrences of the statement.
rowsAffected
- the value to setpublic MySqlSqlStats.Builder rowsSent(Long rowsSent)
The total number of rows returned by occurrences of the statement.
rowsSent
- the value to setpublic MySqlSqlStats.Builder rowsExamined(Long rowsExamined)
The total number of rows read from storage engines by occurrences of the statement.
rowsExamined
- the value to setpublic MySqlSqlStats.Builder tmpDiskTables(Long tmpDiskTables)
The total number of internal on-disk temporary tables created by occurrences of the statement.
tmpDiskTables
- the value to setpublic MySqlSqlStats.Builder tmpTables(Long tmpTables)
The total number of internal in-memory temporary tables created by occurrences of the statement Count
tmpTables
- the value to setpublic MySqlSqlStats.Builder selectFullJoin(Long selectFullJoin)
The total number of joins that perform table scans because they do not use indexes by occurrences of the statement. If this value is not 0
selectFullJoin
- the value to setpublic MySqlSqlStats.Builder selectFullRangeJoin(Long selectFullRangeJoin)
The total number of joins that used a range search on a reference table by occurrences of the statement
selectFullRangeJoin
- the value to setpublic MySqlSqlStats.Builder selectRange(Long selectRange)
The total number of joins that used ranges on the first table by occurrences of the statement. This is normally not a critical issue even if the value is quite large. Count
selectRange
- the value to setpublic MySqlSqlStats.Builder selectRangeCheck(Long selectRangeCheck)
The total number of joins without keys that check for key usage after each row by occurrences of the statement. If this is not 0
selectRangeCheck
- the value to setpublic MySqlSqlStats.Builder selectScan(Long selectScan)
The total number of joins that did a full scan of the first table by occurrences of the statement Count
selectScan
- the value to setpublic MySqlSqlStats.Builder sortMergePasses(Long sortMergePasses)
The total number of sort merge passes by occurrences of the statement.
sortMergePasses
- the value to setpublic MySqlSqlStats.Builder sortRange(Long sortRange)
The total number of sorts that were done using ranges by occurrences of the statement.
sortRange
- the value to setpublic MySqlSqlStats.Builder rowsSorted(Long rowsSorted)
The total number of rows sorted by occurrences of the statement.
rowsSorted
- the value to setpublic MySqlSqlStats.Builder sortScan(Long sortScan)
The total number of sorts that were done by scanning the table by occurrences of the statement.
sortScan
- the value to setpublic MySqlSqlStats.Builder noIndexUsedCount(Long noIndexUsedCount)
The number of occurences of the statement which performed a table scan without using an index Count
noIndexUsedCount
- the value to setpublic MySqlSqlStats.Builder noGoodIndexUsedCount(Long noGoodIndexUsedCount)
The number of occurences of the statement where the server found no good index to use Count
noGoodIndexUsedCount
- the value to setpublic MySqlSqlStats.Builder cpuLatencyInPs(Long cpuLatencyInPs)
The total time spent on CPU (in picoseconds) for the current thread.
cpuLatencyInPs
- the value to setpublic MySqlSqlStats.Builder maxControlledMemoryInBytes(Long maxControlledMemoryInBytes)
The maximum amount of controlled memory (in bytes) used by the statement.
maxControlledMemoryInBytes
- the value to setpublic MySqlSqlStats.Builder maxTotalMemoryInBytes(Long maxTotalMemoryInBytes)
The maximum amount of memory (in bytes) used by the statement.
maxTotalMemoryInBytes
- the value to setpublic MySqlSqlStats.Builder execCountSecondary(Long execCountSecondary)
The total number of times a query was processed on the secondary engine (HEATWAVE) for occurrences of this statement Count.
execCountSecondary
- the value to setpublic MySqlSqlStats.Builder timeFirstSeen(Date timeFirstSeen)
The time at which statement was first seen. Example: "2023-01-16 08:04:31.533577"
timeFirstSeen
- the value to setpublic MySqlSqlStats.Builder timeLastSeen(Date timeLastSeen)
The time at which statement was most recently seen for all occurrences of the statement.
Example: "2023-01-30 02:17:08.067961"
timeLastSeen
- the value to setpublic MySqlSqlStats build()
public MySqlSqlStats.Builder copy(MySqlSqlStats model)
Copyright © 2016–2024. All rights reserved.