Class LineageDetails


  • public class LineageDetails
    extends AssetDetails
    Utility class for capturing the full details provided about a column.
    • 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
      • getOrchestratorFromRow

        public static ConnectionDetails getOrchestratorFromRow​(java.util.Map<java.lang.String,​java.lang.String> row)
        Retrieve the orchestrator details from the provided row.
        Parameters:
        row - of data
        Returns:
        the connection details for the orchestrator for that row
      • getSourceConnectionFromRow

        public static ConnectionDetails getSourceConnectionFromRow​(java.util.Map<java.lang.String,​java.lang.String> row)
        Retrieve the source connection details from the provided row.
        Parameters:
        row - of data
        Returns:
        the connection details for the source asset on that row
      • getTargetConnectionFromRow

        public static ConnectionDetails getTargetConnectionFromRow​(java.util.Map<java.lang.String,​java.lang.String> row)
        Retrieve the target connection details from the provided row.
        Parameters:
        row - of data
        Returns:
        the connection details for the target asset on that row
      • getFromRow

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

        public static void upsert​(java.util.Map<java.lang.String,​java.util.Set<LineageDetails>> processes,
                                  int batchSize)
        Create lineage processes in bulk, if they do not exist, or update them if they do (idempotent).
        Parameters:
        processes - the map of processes to ensure exist, keyed by processQualifiedName
        batchSize - maximum number of processes to create per batch
      • getProcessConnectionQualifiedName

        public java.lang.String getProcessConnectionQualifiedName()
      • getProcessId

        public java.lang.String getProcessId()
      • getSqlCode

        public java.lang.String getSqlCode()
      • getProcessUrl

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