Package io.debezium.openlineage.dataset
Record Class DatasetMetadata.FieldDefinition
java.lang.Object
java.lang.Record
io.debezium.openlineage.dataset.DatasetMetadata.FieldDefinition
- Record Components:
name- the name of the fieldtypeName- the kind name of the fielddescription- a human-readable description of the field's purpose or contentfields- nested field definitions for complex types (empty for primitive types)
- Enclosing class:
DatasetMetadata
public static record DatasetMetadata.FieldDefinition(String name, String typeName, String description, List<DatasetMetadata.FieldDefinition> fields)
extends Record
Represents the definition of a field within a dataset.
A field can be simple (primitive kind) or complex (containing nested fields).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thedescriptionrecord component.private final List<DatasetMetadata.FieldDefinition> The field for thefieldsrecord component.private final StringThe field for thenamerecord component.private final StringThe field for thetypeNamerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionFieldDefinition(String name, String typeName, String description) Convenience constructor for creating a simple field definition without nested fields.FieldDefinition(String name, String typeName, String description, List<DatasetMetadata.FieldDefinition> fields) Creates an instance of aFieldDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.fields()Returns the value of thefieldsrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.typeName()Returns the value of thetypeNamerecord component.
-
Field Details
-
name
The field for thenamerecord component. -
typeName
The field for thetypeNamerecord component. -
description
The field for thedescriptionrecord component. -
fields
The field for thefieldsrecord component.
-
-
Constructor Details
-
FieldDefinition
Convenience constructor for creating a simple field definition without nested fields. This is typically used for primitive types that don't contain sub-fields.- Parameters:
name- the name of the fieldtypeName- the kind name of the fielddescription- a human-readable description of the field
-
FieldDefinition
public FieldDefinition(String name, String typeName, String description, List<DatasetMetadata.FieldDefinition> fields) Creates an instance of aFieldDefinitionrecord class.- Parameters:
name- the value for thenamerecord componenttypeName- the value for thetypeNamerecord componentdescription- the value for thedescriptionrecord componentfields- the value for thefieldsrecord 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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
typeName
Returns the value of thetypeNamerecord component.- Returns:
- the value of the
typeNamerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
fields
Returns the value of thefieldsrecord component.- Returns:
- the value of the
fieldsrecord component
-