Class ResourceIdentifier
- All Implemented Interfaces:
Serializable
PhysicalResourceFacet.
The namespace and name identify a lineage dataset. The identity retains resource components that a rendered name can obscure, including configured Spanner identifier quoting. It contains resource identifiers only, never credentials, SQL, record data, or a connector option map. Equality includes all four properties, so distinct configured identities are not conflated.
This read-only listener API keeps its package name in every SQL connector jar.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()identity()Returns immutable configured resource components, ordered by key.kind()Returns the physical resource kind:bigquery-table,pubsub-topic,pubsub-subscription,bigtable-table,spanner-table,spanner-change-stream, orcloudtasks-queue.name()Returns the canonical physical dataset name.Returns the canonical physical dataset namespace.
-
Constructor Details
-
ResourceIdentifier
@Internal public ResourceIdentifier(String kind, String namespace, String name, Map<String, String> identity) Constructs a snapshot for connector-internal metadata assembly.This is not a user-facing dataset declaration API. The constructor is public so relocated connector helpers can construct the unrelocated listener value.
- Parameters:
kind- the resource kind supplied by the connector's resource factorynamespace- the canonical dataset namespacename- the canonical dataset nameidentity- resource identity components only; keys and values must be non-null
-
-
Method Details
-
kind
Returns the physical resource kind:bigquery-table,pubsub-topic,pubsub-subscription,bigtable-table,spanner-table,spanner-change-stream, orcloudtasks-queue. A BigQuery table identity can also name an explicitly configured view; extraction does not discover its service-side object type. -
namespace
Returns the canonical physical dataset namespace. -
name
Returns the canonical physical dataset name. -
identity
Returns immutable configured resource components, ordered by key.Keys are the applicable subset of
project,dataset,table,topic,subscription,instance,database,schema,stream,location, andqueue. An absent schema is omitted. Spanner schema and table values retain their configured syntax rather than being split fromname(). -
equals
-
hashCode
public int hashCode()
-