public class IoStatisticsHolderQuery extends Object implements IoStatisticsHolder
org.apache.ignite.internal.stat.IoStatisticsHolderIndex
and org.apache.ignite.internal.stat.IoStatisticsHolderCache
.
Query Statistics holder to gather statistics related to concrete query. Used in org.apache.ignite.internal.stat.IoStatisticsHolderIndex
and org.apache.ignite.internal.stat.IoStatisticsHolderCache
.Modifier and Type | Field and Description |
---|---|
static String |
LOGICAL_READS |
static String |
PHYSICAL_READS |
Constructor and Description |
---|
IoStatisticsHolderQuery() |
Modifier and Type | Method and Description |
---|---|
long |
logicalReads() |
void |
merge(long logicalReads,
long physicalReads)
Add given given statistics into this.
|
String |
metricRegistryName() |
long |
physicalReads() |
String |
toString() |
void |
trackLogicalRead(long pageAddr)
Track logical read of given page.
|
void |
trackPhysicalAndLogicalRead(long pageAddr)
Track physical and logical read of given page.
|
public static final String PHYSICAL_READS
public static final String LOGICAL_READS
public void trackLogicalRead(long pageAddr)
trackLogicalRead
in interface IoStatisticsHolder
pageAddr
- Address of page.public void trackPhysicalAndLogicalRead(long pageAddr)
trackPhysicalAndLogicalRead
in interface IoStatisticsHolder
pageAddr
- start address of page.public long logicalReads()
logicalReads
in interface IoStatisticsHolder
public long physicalReads()
physicalReads
in interface IoStatisticsHolder
public String metricRegistryName()
metricRegistryName
in interface IoStatisticsHolder
public void merge(long logicalReads, long physicalReads)
logicalReads
- Logical reads which will be added to current query statistics.physicalReads
- Physical reads which will be added to current query statistics,
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021