Package com.atlan.samples.loaders.models
Class GlossaryEnrichmentDetails
- java.lang.Object
-
- com.atlan.samples.loaders.models.AssetDetails
-
- com.atlan.samples.loaders.models.EnrichmentDetails
-
- com.atlan.samples.loaders.models.GlossaryEnrichmentDetails
-
public class GlossaryEnrichmentDetails extends EnrichmentDetails
Utility class for capturing the enrichment details provided about a glossary.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GlossaryEnrichmentDetails.GlossaryEnrichmentDetailsBuilder<C extends GlossaryEnrichmentDetails,B extends GlossaryEnrichmentDetails.GlossaryEnrichmentDetailsBuilder<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.String
COL_GLOSSARY
-
Fields inherited from class com.atlan.samples.loaders.models.EnrichmentDetails
COL_README, COL_USER_DESCRIPTION
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GlossaryEnrichmentDetails(GlossaryEnrichmentDetails.GlossaryEnrichmentDetailsBuilder<?,?> b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GlossaryEnrichmentDetails.GlossaryEnrichmentDetailsBuilder<?,?>
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
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.java.lang.String
getIdentity()
Retrieve the unique identity of this asset for deduplication across rows.java.lang.String
getName()
static java.lang.String
getNameFromIdentity(java.lang.String identity)
Retrieve the name of the glossary from its identity.int
hashCode()
java.lang.String
toString()
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).-
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_GLOSSARY
public static final java.lang.String COL_GLOSSARY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GlossaryEnrichmentDetails
protected GlossaryEnrichmentDetails(GlossaryEnrichmentDetails.GlossaryEnrichmentDetailsBuilder<?,?> b)
-
-
Method Detail
-
getIdentity
public java.lang.String getIdentity()
Retrieve the unique identity of this asset for deduplication across rows.- Specified by:
getIdentity
in classAssetDetails
- 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 valuedelim
- 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 existbatchSize
- maximum number of glossaries to create per batchreplaceClassifications
- if true, the classifications in the spreadsheet will overwrite all existing classifications 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- Returns:
- a cache of glossaries
-
builder
public static GlossaryEnrichmentDetails.GlossaryEnrichmentDetailsBuilder<?,?> builder()
-
getName
public java.lang.String getName()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classEnrichmentDetails
-
canEqual
protected boolean canEqual(java.lang.Object other)
- Overrides:
canEqual
in classEnrichmentDetails
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classEnrichmentDetails
-
toString
public java.lang.String toString()
- Overrides:
toString
in classEnrichmentDetails
-
-