John Joyce 97e9660037
feat: No Code Metadata Modeling (#2629)
Co-authored-by: Dexter Lee <dexter@acryl.io>
Co-authored-by: Gabe Lyons <itsgabelyons@gmail.com>
Co-authored-by: Shirshanka Das <shirshanka@apache.org>
2021-06-03 13:24:33 -07:00

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();
}