Class GlossaryEnrichmentDetails


  • public class GlossaryEnrichmentDetails
    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
      • getNameFromIdentity

        public static java.lang.String getNameFromIdentity​(java.lang.String identity)
        Retrieve the name of the glossary from its identity.
        Parameters:
        identity - of the glossary
        Returns:
        only the name of the glossary
      • getFromRow

        public static GlossaryEnrichmentDetails getFromRow​(java.util.Map<java.lang.String,​java.lang.String> row,
                                                           java.lang.String delim)
        Build up details about the glossary on the provided row.
        Parameters:
        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 glossary enrichment details for that row
      • upsert

        public static GlossaryCache upsert​(java.util.Map<java.lang.String,​GlossaryEnrichmentDetails> glossaries,
                                           int batchSize,
                                           boolean replaceClassifications,
                                           boolean replaceCM,
                                           boolean updateOnly)
        Create glossaries in bulk, if they do not exist, or update them if they do (idempotent).
        Parameters:
        glossaries - the set of glossaries to ensure exist
        batchSize - maximum number of glossaries to create per batch
        replaceClassifications - if true, the classifications in the spreadsheet will overwrite all existing classifications 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
        Returns:
        a cache of glossaries
      • getName

        public java.lang.String getName()