public class StatementMetricRepository extends Object
At a minimum there is one group (the default) of index zero.
Constructor and Description |
---|
StatementMetricRepository(String engineURI,
ConfigurationMetricsReporting specification)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
accountOutput(StatementMetricHandle handle,
int numIStream,
int numRStream)
Account row output.
|
void |
accountTimes(StatementMetricHandle handle,
long cpu,
long wall,
int numInput)
Account statement times.
|
StatementMetricHandle |
addStatement(String stmtName)
Add a statement, inspecting the statement name and adding it to a statement group or the default group, if none.
|
void |
removeStatement(String stmtName)
Remove statement.
|
StatementMetric[] |
reportGroup(int group)
Report for a given statement group.
|
public StatementMetricRepository(String engineURI, ConfigurationMetricsReporting specification)
engineURI
- engine URIspecification
- specifies statement groupspublic StatementMetricHandle addStatement(String stmtName)
stmtName
- name to inspectpublic void removeStatement(String stmtName)
stmtName
- to removepublic void accountTimes(StatementMetricHandle handle, long cpu, long wall, int numInput)
handle
- statement handlecpu
- timewall
- timenumInput
- number of input rowspublic void accountOutput(StatementMetricHandle handle, int numIStream, int numRStream)
handle
- statement handlenumIStream
- num rows insert streamnumRStream
- num rows remove streampublic StatementMetric[] reportGroup(int group)
group
- to report