Record Class ModelGraphDocumentManifest.Node
java.lang.Object
java.lang.Record
io.fluxzero.common.search.ModelGraphDocumentManifest.Node
- Enclosing class:
ModelGraphDocumentManifest
public static record ModelGraphDocumentManifest.Node(String id, int type, int revision, int parent, int relationshipPath, int ordinal)
extends Record
One concrete placement in pre-order. Type and relationship path are dictionary indexes;
parent is the
parent node index or -1 for the root. Revision belongs to this node's direct document. Ordinal is the
child's position among siblings at the same path.-
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.id()Returns the value of theidrecord component.intordinal()Returns the value of theordinalrecord component.intparent()Returns the value of theparentrecord component.intReturns the value of therelationshipPathrecord component.intrevision()Returns the value of therevisionrecord component.final StringtoString()Returns a string representation of this record class.inttype()Returns the value of thetyperecord component.
-
Constructor Details
-
Node
Creates an instance of aNoderecord class.- Parameters:
id- the value for theidrecord componenttype- the value for thetyperecord componentrevision- the value for therevisionrecord componentparent- the value for theparentrecord componentrelationshipPath- the value for therelationshipPathrecord componentordinal- the value for theordinalrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
type
public int type()Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
revision
public int revision()Returns the value of therevisionrecord component.- Returns:
- the value of the
revisionrecord component
-
parent
public int parent()Returns the value of theparentrecord component.- Returns:
- the value of the
parentrecord component
-
relationshipPath
public int relationshipPath()Returns the value of therelationshipPathrecord component.- Returns:
- the value of the
relationshipPathrecord component
-
ordinal
public int ordinal()Returns the value of theordinalrecord component.- Returns:
- the value of the
ordinalrecord component
-