mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-14 11:36:59 +00:00
Co-authored-by: Dexter Lee <dexter@acryl.io> Co-authored-by: Gabe Lyons <itsgabelyons@gmail.com> Co-authored-by: Shirshanka Das <shirshanka@apache.org>
22 lines
517 B
Java
22 lines
517 B
Java
package com.linkedin.metadata.models;
|
|
|
|
import com.linkedin.data.schema.DataSchema;
|
|
import com.linkedin.data.schema.PathSpec;
|
|
|
|
|
|
/**
|
|
* Base interface for aspect field specs. Contains a) the path to the field and b) the schema of the field
|
|
*/
|
|
public interface FieldSpec {
|
|
|
|
/**
|
|
* Returns the {@link PathSpec} corresponding to the field, relative to its parent aspect.
|
|
*/
|
|
PathSpec getPath();
|
|
|
|
/**
|
|
* Returns the {@link DataSchema} associated with the aspect field.
|
|
*/
|
|
DataSchema getPegasusSchema();
|
|
}
|