Class ContainerDetails


  • public class ContainerDetails
    extends AssetDetails
    Utility class for capturing the full details provided about a table.
    • 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
      • getQualifiedName

        public static java.lang.String getQualifiedName​(java.util.Map<ConnectionDetails,​java.lang.String> connectionCache,
                                                        java.util.Map<java.lang.String,​java.lang.String> row)
        Construct a container's qualifiedName from the row of data and cache of connections.
        Parameters:
        connectionCache - cache of connections
        row - of data
        Returns:
        the qualifiedName for the container on that row of data
      • getFromRow

        public static ContainerDetails getFromRow​(java.util.Map<ConnectionDetails,​java.lang.String> connectionCache,
                                                  java.util.Map<java.lang.String,​java.lang.String> row,
                                                  java.lang.String delim)
        Build up details about the container on the provided row.
        Parameters:
        connectionCache - a cache of connections that have first been resolved across the spreadsheet
        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 container details for that row
      • upsert

        public static java.util.Set<java.lang.String> upsert​(java.util.Map<java.lang.String,​ContainerDetails> containers,
                                                             int batchSize,
                                                             boolean updateOnly)
        Create containers in bulk, if they do not exist, or update them if they do (idempotent).
        Parameters:
        containers - the set of containers to ensure exist
        batchSize - maximum number of containers to create per batch
        updateOnly - if true, only attempt to update existing assets, otherwise allow assets to be created as well
        Returns:
        qualifiedNames of all parent schemas in which assets were created or updated
      • getSchemaQualifiedName

        public java.lang.String getSchemaQualifiedName()
      • getName

        public java.lang.String getName()
      • getType

        public java.lang.String getType()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class AssetDetails
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
        Overrides:
        canEqual in class AssetDetails