Class IoStatisticsHolderIndex
- java.lang.Object
-
- org.apache.ignite.internal.metric.IoStatisticsHolderIndex
-
- All Implemented Interfaces:
IoStatisticsHolder
public class IoStatisticsHolderIndex extends Object implements IoStatisticsHolder
Index statistics holder to gather statistics related to concrete index.
-
-
Field Summary
Fields Modifier and Type Field Description static StringHASH_PK_IDX_NAMEDisplay name of hash PK index.static StringLOGICAL_READS_INNERstatic StringLOGICAL_READS_LEAFstatic StringPHYSICAL_READS_INNERstatic StringPHYSICAL_READS_LEAF
-
Constructor Summary
Constructors Constructor Description IoStatisticsHolderIndex(IoStatisticsType type, String grpName, String idxName, GridMetricManager mmgr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longlogicalReads()StringmetricRegistryName()longphysicalReads()StringtoString()voidtrackLogicalRead(long pageAddr)Track logical read of given page.voidtrackPhysicalAndLogicalRead(long pageAddr)Track physical and logical read of given page.
-
-
-
Field Detail
-
HASH_PK_IDX_NAME
public static final String HASH_PK_IDX_NAME
Display name of hash PK index.- See Also:
- Constant Field Values
-
LOGICAL_READS_LEAF
public static final String LOGICAL_READS_LEAF
- See Also:
- Constant Field Values
-
LOGICAL_READS_INNER
public static final String LOGICAL_READS_INNER
- See Also:
- Constant Field Values
-
PHYSICAL_READS_LEAF
public static final String PHYSICAL_READS_LEAF
- See Also:
- Constant Field Values
-
PHYSICAL_READS_INNER
public static final String PHYSICAL_READS_INNER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IoStatisticsHolderIndex
public IoStatisticsHolderIndex(IoStatisticsType type, String grpName, String idxName, GridMetricManager mmgr)
- Parameters:
type- Type of statistics.grpName- Group name.idxName- Index name.mmgr- Metric manager.
-
-
Method Detail
-
trackLogicalRead
public void trackLogicalRead(long pageAddr)
Track logical read of given page.- Specified by:
trackLogicalReadin interfaceIoStatisticsHolder- Parameters:
pageAddr- Address of page.
-
trackPhysicalAndLogicalRead
public void trackPhysicalAndLogicalRead(long pageAddr)
Track physical and logical read of given page.- Specified by:
trackPhysicalAndLogicalReadin interfaceIoStatisticsHolder- Parameters:
pageAddr- start address of page.
-
logicalReads
public long logicalReads()
- Specified by:
logicalReadsin interfaceIoStatisticsHolder- Returns:
- Number of logical reads.
-
physicalReads
public long physicalReads()
- Specified by:
physicalReadsin interfaceIoStatisticsHolder- Returns:
- Number of physical reads.
-
metricRegistryName
public String metricRegistryName()
- Specified by:
metricRegistryNamein interfaceIoStatisticsHolder- Returns:
- Metric registry name.
-
-