Class SearchStatisticsSnapshotImpl
java.lang.Object
org.infinispan.query.core.stats.impl.SearchStatisticsSnapshotImpl
- All Implemented Interfaces:
JsonSerialization, SearchStatistics, SearchStatisticsSnapshot
@ProtoTypeId(4206)
public final class SearchStatisticsSnapshotImpl
extends Object
implements SearchStatisticsSnapshot
Query and Index statistics for a Cache.
since 12.0
-
Constructor Summary
ConstructorsConstructorDescriptionSearchStatisticsSnapshotImpl(LocalQueryStatistics queryStatistics, IndexStatisticsSnapshotImpl indexStatistics) SearchStatisticsSnapshotImpl(QueryStatisticsSnapshot queryStatistics, IndexStatisticsSnapshot indexStatistics) -
Method Summary
Modifier and TypeMethodDescriptionmerge(SearchStatisticsSnapshot other) Merge with anotherSearchStatisticsSnapshottoJson()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SearchStatisticsSnapshot
computeSnapshot
-
Constructor Details
-
SearchStatisticsSnapshotImpl
public SearchStatisticsSnapshotImpl() -
SearchStatisticsSnapshotImpl
@ProtoFactory public SearchStatisticsSnapshotImpl(LocalQueryStatistics queryStatistics, IndexStatisticsSnapshotImpl indexStatistics) -
SearchStatisticsSnapshotImpl
public SearchStatisticsSnapshotImpl(QueryStatisticsSnapshot queryStatistics, IndexStatisticsSnapshot indexStatistics)
-
-
Method Details
-
getQueryStatistics
@ProtoField(number=1, javaType=LocalQueryStatistics.class) public QueryStatisticsSnapshot getQueryStatistics()- Specified by:
getQueryStatisticsin interfaceSearchStatistics- Specified by:
getQueryStatisticsin interfaceSearchStatisticsSnapshot- Returns:
QueryStatistics
-
getIndexStatistics
@ProtoField(number=2, javaType=IndexStatisticsSnapshotImpl.class) public IndexStatisticsSnapshot getIndexStatistics()- Specified by:
getIndexStatisticsin interfaceSearchStatistics- Specified by:
getIndexStatisticsin interfaceSearchStatisticsSnapshot- Returns:
IndexStatistics
-
merge
Description copied from interface:SearchStatisticsSnapshotMerge with anotherSearchStatisticsSnapshot- Specified by:
mergein interfaceSearchStatisticsSnapshot- Returns:
- self.
-
toJson
- Specified by:
toJsonin interfaceJsonSerialization
-