public class GlobalIndexesStats extends Object implements IndexesStats
The main trait of the implementation is the concurrency support, which is required for global indexes because they are shared among partitions.
EMPTY
Constructor and Description |
---|
GlobalIndexesStats() |
Modifier and Type | Method and Description |
---|---|
PerIndexStats |
createPerIndexStats(boolean ordered,
boolean usesCachedQueryableEntries)
Creates a new instance of internal per-index stats.
|
long |
getIndexedQueryCount()
Returns the number of indexed queries performed on the indexes.
|
long |
getQueryCount()
Returns the number of queries performed on the indexes.
|
void |
incrementIndexedQueryCount()
Increments the number of indexed queries performed on the indexes.
|
void |
incrementQueryCount()
Increments the number of queries performed on the indexes.
|
public long getQueryCount()
IndexesStats
getQueryCount
in interface IndexesStats
public void incrementQueryCount()
IndexesStats
incrementQueryCount
in interface IndexesStats
public long getIndexedQueryCount()
IndexesStats
getIndexedQueryCount
in interface IndexesStats
public void incrementIndexedQueryCount()
IndexesStats
incrementIndexedQueryCount
in interface IndexesStats
public PerIndexStats createPerIndexStats(boolean ordered, boolean usesCachedQueryableEntries)
IndexesStats
createPerIndexStats
in interface IndexesStats
ordered
- true
if the stats are being created
for an ordered index, false
otherwise.usesCachedQueryableEntries
- true
if the stats are being created
for an index for which queryable entries are
cached, false
otherwise.Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.