Package io.debezium.openlineage.dataset
Record Class DatasetMetadata
java.lang.Object
java.lang.Record
io.debezium.openlineage.dataset.DatasetMetadata
- Record Components:
name- the name of the datasetkind- the kind of the dataset (INPUT or OUTPUT)type- the type of the dataset (e.g. TABLE, VIEW, TOPIC, MODEL). Maps to OpenLineage dataset typefields- the list of field definitions that make up the dataset structure
public record DatasetMetadata(String name, DatasetMetadata.DatasetKind kind, String type, DatasetMetadata.DataStore store, List<DatasetMetadata.FieldDefinition> fields)
extends Record
Represents metadata for a dataset, including its name, kind, type, and field definitions.
This record provides a complete description of a dataset's structure and characteristics.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnumeration representing the kind of dataset.static enumEnumeration representing the final data store related to the dataset.static final recordRepresents the definition of a field within a dataset. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<DatasetMetadata.FieldDefinition> The field for thefieldsrecord component.private final DatasetMetadata.DatasetKindThe field for thekindrecord component.private final StringThe field for thenamerecord component.private final DatasetMetadata.DataStoreThe field for thestorerecord component.static final Stringstatic final Stringprivate final StringThe field for thetyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDatasetMetadata(String name, DatasetMetadata.DatasetKind kind, String type, DatasetMetadata.DataStore store, List<DatasetMetadata.FieldDefinition> fields) Creates an instance of aDatasetMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.kind()Returns the value of thekindrecord component.name()Returns the value of thenamerecord component.store()Returns the value of thestorerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
Constructor Details
-
DatasetMetadata
public DatasetMetadata(String name, DatasetMetadata.DatasetKind kind, String type, DatasetMetadata.DataStore store, List<DatasetMetadata.FieldDefinition> fields) Creates an instance of aDatasetMetadatarecord class.
-
-
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
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
store
Returns the value of thestorerecord component.- Returns:
- the value of the
storerecord component
-
fields
Returns the value of thefieldsrecord component.- Returns:
- the value of the
fieldsrecord component
-