Class AssetEnrichmentDetails


  • public class AssetEnrichmentDetails
    extends EnrichmentDetails
    Utility class for capturing the enrichment details provided about a glossary.
    • Method Detail

      • getIdentity

        public java.lang.String getIdentity()
        Retrieve the unique identity of this asset for deduplication across rows.
        Specified by:
        getIdentity in class AssetDetails
        Returns:
        String giving the unique identity of the asset
      • getIdentity

        public static java.lang.String getIdentity​(java.lang.String typeName,
                                                   java.lang.String qualifiedName)
      • getFromRow

        public static AssetEnrichmentDetails getFromRow​(TermCache termCache,
                                                        java.util.Map<java.lang.String,​java.lang.String> row,
                                                        java.lang.String delim)
        Build up details about the asset on the provided row.
        Parameters:
        termCache - cache of terms
        row - a row of data from the spreadsheet, as a map from column name to value
        delim - delimiter used in cells that can contain multiple values
        Returns:
        the asset enrichment details for that row
      • upsert

        public static void upsert​(java.util.Map<java.lang.String,​AssetEnrichmentDetails> assets,
                                  int batchSize,
                                  boolean replaceAtlanTags,
                                  boolean replaceCM,
                                  boolean updateOnly)
        Create assets in bulk, if they do not exist, or update them if they do (idempotent).
        Parameters:
        assets - the set of assets to ensure exist
        batchSize - maximum number of assets to create per batch
        replaceAtlanTags - if true, the Atlan tags in the spreadsheet will overwrite all existing Atlan tags on the asset; otherwise they will only be appended
        replaceCM - if true, the custom metadata in the spreadsheet will overwrite all custom metadata on the asset; otherwise only the attributes with values will be updated
        updateOnly - if true, only attempt to update existing assets, otherwise allow assets to be created as well
      • getQualifiedName

        public java.lang.String getQualifiedName()
      • getType

        public java.lang.String getType()
      • getName

        public java.lang.String getName()
      • getTerms

        public java.util.List<com.atlan.model.assets.Asset> getTerms()