Record Class CsvManifestSnapshotBuilder.RelationSpec
java.lang.Object
java.lang.Record
org.impulsegraph.builder.csv.CsvManifestSnapshotBuilder.RelationSpec
- Enclosing class:
CsvManifestSnapshotBuilder
-
Constructor Summary
ConstructorsConstructorDescriptionRelationSpec(int id, String name, int srcDomainId, int tgtDomainId, String encoding, boolean includeCsc, int edgeCount, String csvRelPath, List<CsvManifestSnapshotBuilder.AttributeSpec> attributes) Creates an instance of aRelationSpecrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.Returns the value of thecsvRelPathrecord component.intReturns the value of theedgeCountrecord component.encoding()Returns the value of theencodingrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.booleanReturns the value of theincludeCscrecord component.name()Returns the value of thenamerecord component.intReturns the value of thesrcDomainIdrecord component.intReturns the value of thetgtDomainIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RelationSpec
public RelationSpec(int id, String name, int srcDomainId, int tgtDomainId, String encoding, boolean includeCsc, int edgeCount, String csvRelPath, List<CsvManifestSnapshotBuilder.AttributeSpec> attributes) Creates an instance of aRelationSpecrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentsrcDomainId- the value for thesrcDomainIdrecord componenttgtDomainId- the value for thetgtDomainIdrecord componentencoding- the value for theencodingrecord componentincludeCsc- the value for theincludeCscrecord componentedgeCount- the value for theedgeCountrecord componentcsvRelPath- the value for thecsvRelPathrecord componentattributes- the value for theattributesrecord 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
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
srcDomainId
public int srcDomainId()Returns the value of thesrcDomainIdrecord component.- Returns:
- the value of the
srcDomainIdrecord component
-
tgtDomainId
public int tgtDomainId()Returns the value of thetgtDomainIdrecord component.- Returns:
- the value of the
tgtDomainIdrecord component
-
encoding
Returns the value of theencodingrecord component.- Returns:
- the value of the
encodingrecord component
-
includeCsc
public boolean includeCsc()Returns the value of theincludeCscrecord component.- Returns:
- the value of the
includeCscrecord component
-
edgeCount
public int edgeCount()Returns the value of theedgeCountrecord component.- Returns:
- the value of the
edgeCountrecord component
-
csvRelPath
Returns the value of thecsvRelPathrecord component.- Returns:
- the value of the
csvRelPathrecord component
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-