Class IndexStatisticsSnapshotImpl
java.lang.Object
org.infinispan.query.core.stats.impl.IndexStatisticsSnapshotImpl
- All Implemented Interfaces:
org.infinispan.commons.dataconversion.internal.JsonSerialization,IndexStatistics,IndexStatisticsSnapshot
@ProtoTypeId(4203)
public class IndexStatisticsSnapshotImpl
extends Object
implements IndexStatisticsSnapshot
A snapshot for
IndexStatistics.- Since:
- 12.0
-
Constructor Summary
ConstructorsConstructorDescriptionIndexStatisticsSnapshotImpl(List<org.infinispan.query.core.stats.impl.IndexEntry> entries, boolean reindexing) IndexStatisticsSnapshotImpl(Map<String, IndexInfo> indexInfos, boolean reindexing) -
Method Summary
Modifier and TypeMethodDescriptionList<org.infinispan.query.core.stats.impl.IndexEntry>merge(IndexStatisticsSnapshot other) Merge with anotherIndexStatisticsSnapshot.booleanorg.infinispan.commons.dataconversion.internal.JsontoJson()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.query.core.stats.IndexStatisticsSnapshot
computeIndexInfos, computeSnapshot, indexedEntities
-
Constructor Details
-
IndexStatisticsSnapshotImpl
public IndexStatisticsSnapshotImpl() -
IndexStatisticsSnapshotImpl
-
IndexStatisticsSnapshotImpl
@ProtoFactory public IndexStatisticsSnapshotImpl(List<org.infinispan.query.core.stats.impl.IndexEntry> entries, boolean reindexing)
-
-
Method Details
-
indexInfos
- Specified by:
indexInfosin interfaceIndexStatisticsSnapshot- Returns:
- The
IndexInfofor each indexed entity configured in the cache. The name of the entity is either the class name annotated with @Index, or the protobuf Message name.
-
getEntries
@ProtoField(number=1, collectionImplementation=java.util.ArrayList.class) public List<org.infinispan.query.core.stats.impl.IndexEntry> getEntries() -
reindexing
@ProtoField(number=2, defaultValue="false") public boolean reindexing()- Specified by:
reindexingin interfaceIndexStatistics
-
toJson
public org.infinispan.commons.dataconversion.internal.Json toJson()- Specified by:
toJsonin interfaceorg.infinispan.commons.dataconversion.internal.JsonSerialization
-
merge
Description copied from interface:IndexStatisticsSnapshotMerge with anotherIndexStatisticsSnapshot.- Specified by:
mergein interfaceIndexStatisticsSnapshot- Returns:
- self
-