public class PartitionIndexesStats extends Object implements IndexesStats
The main trait of the implementation is the lack of concurrency support since partitioned indexes and their stats are updated from a single thread only.
EMPTY
Constructor and Description |
---|
PartitionIndexesStats() |
Modifier and Type | Method and Description |
---|---|
PerIndexStats |
createPerIndexStats(boolean ordered,
boolean queryableEntriesAreCached)
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 queryableEntriesAreCached)
IndexesStats
createPerIndexStats
in interface IndexesStats
ordered
- true
if the stats are being created
for an ordered index, false
otherwise.queryableEntriesAreCached
- true
if the stats are being created
for an index for which queryable entries are
cached, false
otherwise.Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.