Package com.atlan.samples.loaders.models
Class AssetEnrichmentDetails
- java.lang.Object
-
- com.atlan.samples.loaders.models.AssetDetails
-
- com.atlan.samples.loaders.models.EnrichmentDetails
-
- com.atlan.samples.loaders.models.AssetEnrichmentDetails
-
public class AssetEnrichmentDetails extends EnrichmentDetails
Utility class for capturing the enrichment details provided about a glossary.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAssetEnrichmentDetails.AssetEnrichmentDetailsBuilder<C extends AssetEnrichmentDetails,B extends AssetEnrichmentDetails.AssetEnrichmentDetailsBuilder<C,B>>-
Nested classes/interfaces inherited from class com.atlan.samples.loaders.models.EnrichmentDetails
EnrichmentDetails.EnrichmentDetailsBuilder<C extends EnrichmentDetails,B extends EnrichmentDetails.EnrichmentDetailsBuilder<C,B>>
-
Nested classes/interfaces inherited from class com.atlan.samples.loaders.models.AssetDetails
AssetDetails.AssetDetailsBuilder<C extends AssetDetails,B extends AssetDetails.AssetDetailsBuilder<C,B>>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCOL_ASSIGNED_TERMSstatic java.lang.StringCOL_NAMEstatic java.lang.StringCOL_QUALIFIED_NAMEstatic java.lang.StringCOL_TYPE-
Fields inherited from class com.atlan.samples.loaders.models.EnrichmentDetails
COL_README, COL_USER_DESCRIPTION
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAssetEnrichmentDetails(AssetEnrichmentDetails.AssetEnrichmentDetailsBuilder<?,?> b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AssetEnrichmentDetails.AssetEnrichmentDetailsBuilder<?,?>builder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)static AssetEnrichmentDetailsgetFromRow(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.java.lang.StringgetIdentity()Retrieve the unique identity of this asset for deduplication across rows.static java.lang.StringgetIdentity(java.lang.String typeName, java.lang.String qualifiedName)java.lang.StringgetName()java.lang.StringgetQualifiedName()java.util.List<com.atlan.model.assets.Asset>getTerms()java.lang.StringgetType()inthashCode()java.lang.StringtoString()static voidupsert(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).-
Methods inherited from class com.atlan.samples.loaders.models.EnrichmentDetails
getCustomMetadataValues, getCustomMetadataValuesFromRow, getReadme, getUserDescription
-
Methods inherited from class com.atlan.samples.loaders.models.AssetDetails
appendAtlanTags, getAnnouncementMessage, getAnnouncementTitle, getAnnouncementType, getAtlanTags, getBoolean, getCertificate, getCertificateStatusMessage, getDescription, getFromRow, getMissingFields, getMultiValuedList, getOwnerGroups, getOwnerUsers, getRequiredEmptyFields, isStub, selectivelyUpdateCustomMetadata
-
-
-
-
Field Detail
-
COL_QUALIFIED_NAME
public static final java.lang.String COL_QUALIFIED_NAME
- See Also:
- Constant Field Values
-
COL_TYPE
public static final java.lang.String COL_TYPE
- See Also:
- Constant Field Values
-
COL_NAME
public static final java.lang.String COL_NAME
- See Also:
- Constant Field Values
-
COL_ASSIGNED_TERMS
public static final java.lang.String COL_ASSIGNED_TERMS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AssetEnrichmentDetails
protected AssetEnrichmentDetails(AssetEnrichmentDetails.AssetEnrichmentDetailsBuilder<?,?> b)
-
-
Method Detail
-
getIdentity
public java.lang.String getIdentity()
Retrieve the unique identity of this asset for deduplication across rows.- Specified by:
getIdentityin classAssetDetails- 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 termsrow- a row of data from the spreadsheet, as a map from column name to valuedelim- 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 existbatchSize- maximum number of assets to create per batchreplaceAtlanTags- if true, the Atlan tags in the spreadsheet will overwrite all existing Atlan tags on the asset; otherwise they will only be appendedreplaceCM- if true, the custom metadata in the spreadsheet will overwrite all custom metadata on the asset; otherwise only the attributes with values will be updatedupdateOnly- if true, only attempt to update existing assets, otherwise allow assets to be created as well
-
builder
public static AssetEnrichmentDetails.AssetEnrichmentDetailsBuilder<?,?> builder()
-
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()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classEnrichmentDetails
-
canEqual
protected boolean canEqual(java.lang.Object other)
- Overrides:
canEqualin classEnrichmentDetails
-
hashCode
public int hashCode()
- Overrides:
hashCodein classEnrichmentDetails
-
toString
public java.lang.String toString()
- Overrides:
toStringin classEnrichmentDetails
-
-