Record Class SourceDocLookup.SourceDocSnapshot
java.lang.Object
java.lang.Record
org.alfresco.elasticsearch.batchindexing.cascade.SourceDocLookup.SourceDocSnapshot
- Enclosing class:
- SourceDocLookup
public static record SourceDocLookup.SourceDocSnapshot(String prefixedSegment, String unprefixedSegment, String type, List<String> paths, List<String> unprefixedPaths)
extends Record
Snapshot of a source doc's cascade-relevant fields.
*Segment = terminal path segment (rename); paths / unprefixedPaths = full arrays (category-delete PATH pruning); type = pre-delete TYPE (category detection).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.paths()Returns the value of thepathsrecord component.Returns the value of theprefixedSegmentrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.Returns the value of theunprefixedPathsrecord component.Returns the value of theunprefixedSegmentrecord component.
-
Constructor Details
-
SourceDocSnapshot
public SourceDocSnapshot(String prefixedSegment, String unprefixedSegment, String type, List<String> paths, List<String> unprefixedPaths) Creates an instance of aSourceDocSnapshotrecord class.- Parameters:
prefixedSegment- the value for theprefixedSegmentrecord componentunprefixedSegment- the value for theunprefixedSegmentrecord componenttype- the value for thetyperecord componentpaths- the value for thepathsrecord componentunprefixedPaths- the value for theunprefixedPathsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
prefixedSegment
Returns the value of theprefixedSegmentrecord component.- Returns:
- the value of the
prefixedSegmentrecord component
-
unprefixedSegment
Returns the value of theunprefixedSegmentrecord component.- Returns:
- the value of the
unprefixedSegmentrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
paths
Returns the value of thepathsrecord component.- Returns:
- the value of the
pathsrecord component
-
unprefixedPaths
Returns the value of theunprefixedPathsrecord component.- Returns:
- the value of the
unprefixedPathsrecord component
-