Record Class OpenSearchPoller.FamilySnapshot
java.lang.Object
java.lang.Record
ai.pipestream.module.pipelineprobe.pipelinecrawl.OpenSearchPoller.FamilySnapshot
- Record Components:
counts- per-index doc counts in OSM's enumeration order (base first), failed indices mapped to zero
- Enclosing class:
OpenSearchPoller
One tick's view of the crawl's index family.
counts keeps
OSM's enumeration order (base first); per-index failures (usually
"index doesn't exist yet", early in the run) count as zero rather
than aborting the tick.-
Constructor Summary
ConstructorsConstructorDescriptionFamilySnapshot(Map<String, Long> counts) Creates an instance of aFamilySnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongThe headline count: docs in the base index for this crawl.counts()Returns the value of thecountsrecord component.final booleanIndicates whether some other object is "equal to" this one.longSum across the family — the "did anything anywhere move" signal.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FamilySnapshot
-
-
Method Details
-
baseCount
The headline count: docs in the base index for this crawl.- Parameters:
baseIndexName- the base index name to look up- Returns:
- the doc count for the base index, or 0 if absent from the snapshot
-
familyTotal
public long familyTotal()Sum across the family — the "did anything anywhere move" signal.- Returns:
- the total doc count summed over every index in the snapshot
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
counts
-