Interface MassIndexingTypeGroupMonitorCreateContext
-
Method Summary
Modifier and TypeMethodDescriptionDescribes the entity types included in the type group.Provides a total count of entities within the type group that should be indexed if obtaining such a count is possible.
-
Method Details
-
includedTypes
Set<MassIndexingType> includedTypes()Describes the entity types included in the type group.- Returns:
- The set of entity types included in the type group.
-
totalCount
OptionalLong totalCount()Provides a total count of entities within the type group that should be indexed if obtaining such a count is possible.Warning: This operation is not cached and a count from the underlying loading strategy will be requested on each call to get the total count.
The loaders used to calculate the count provided by this context are not reused by the indexing process, which means that, in general, the number returned by this context may not match the number of entities to index once the actual indexing starts. This can happen when new entities are added/existing ones are removed before the indexing process starts.
- Returns:
- The total count of entities to be indexed within the current type group, or an empty optional if the count cannot be determined by the underlying loading strategy, e.g. when the strategy is based on a stream data and obtaining count is not possible until all elements of the stream are consumed.
-