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()
IndexesStatsgetQueryCount in interface IndexesStatspublic void incrementQueryCount()
IndexesStatsincrementQueryCount in interface IndexesStatspublic long getIndexedQueryCount()
IndexesStatsgetIndexedQueryCount in interface IndexesStatspublic void incrementIndexedQueryCount()
IndexesStatsincrementIndexedQueryCount in interface IndexesStatspublic PerIndexStats createPerIndexStats(boolean ordered, boolean queryableEntriesAreCached)
IndexesStatscreatePerIndexStats in interface IndexesStatsordered - 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.