import * as React from 'react'; import { DotChartOutlined } from '@ant-design/icons'; import { MlFeatureTable, EntityType, SearchResult } from '../../../types.generated'; import { Preview } from './preview/Preview'; import { MLFeatureTableProfile } from './profile/MLFeatureTableProfile'; import { Entity, IconStyleType, PreviewType } from '../Entity'; /** * Definition of the DataHub MLFeatureTable entity. */ export class MLFeatureTableEntity implements Entity { type: EntityType = EntityType.MlfeatureTable; icon = (fontSize: number, styleType: IconStyleType) => { if (styleType === IconStyleType.TAB_VIEW) { return ; } if (styleType === IconStyleType.HIGHLIGHT) { return ; } return ( ); }; isSearchEnabled = () => true; isBrowseEnabled = () => true; isLineageEnabled = () => true; getAutoCompleteFieldName = () => 'name'; getPathName = () => 'featureTables'; getCollectionName = () => 'Feature tables'; renderProfile = (urn: string) => ; renderPreview = (_: PreviewType, data: MlFeatureTable) => { return ( ); }; renderSearch = (result: SearchResult) => { const data = result.entity as MlFeatureTable; return ( ); }; getLineageVizConfig = (entity: MlFeatureTable) => { return { urn: entity.urn, name: entity.name, type: EntityType.MlfeatureTable, upstreamChildren: [], downstreamChildren: [], icon: entity.platform.info?.logoUrl || undefined, platform: entity.platform.name, }; }; displayName = (data: MlFeatureTable) => { return data.name; }; }