Class ObjectDetails


  • public class ObjectDetails
    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
      • getFromRow

        public static ObjectDetails 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 object 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 object details for that row
      • upsert

        public static java.util.Set<java.lang.String> upsert​(java.util.Map<java.lang.String,​ObjectDetails> objects,
                                                             int batchSize,
                                                             boolean updateOnly)
        Create objects in bulk, if they do not exist, or update them if they do (idempotent).
        Parameters:
        objects - the set of objects to ensure exist
        batchSize - maximum number of objects 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 buckets in which assets were created or updated
      • getConnectionQualifiedName

        public java.lang.String getConnectionQualifiedName()
      • getContainerQualifiedName

        public java.lang.String getContainerQualifiedName()
      • getBucketName

        public java.lang.String getBucketName()
      • getName

        public java.lang.String getName()
      • getArn

        public java.lang.String getArn()
      • getPath

        public java.lang.String getPath()
      • getSize

        public java.lang.Long getSize()
      • getContentType

        public java.lang.String getContentType()
      • 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