Package io.openlineage.client.dataset
Class Naming.PubSubNaming
java.lang.Object
io.openlineage.client.dataset.Naming.PubSubNaming
- All Implemented Interfaces:
Naming.DatasetNaming
- Enclosing class:
- Naming
Naming implementation for Google Pub/Sub.
Namespace is fixed as "pubsub"
. Name format depends on the resource type:
topic:{projectId}:{topicId}
subscription:{projectId}:{subscriptionId}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static enum
Enum representing supported Pub/Sub resource types. -
Constructor Summary
ConstructorsConstructorDescriptionPubSubNaming
(Naming.PubSubNaming.PubSubResourceType resourceType, String projectId, String resourceId) Constructs a Pub/Sub naming instance. -
Method Summary
-
Constructor Details
-
PubSubNaming
public PubSubNaming(Naming.PubSubNaming.PubSubResourceType resourceType, String projectId, String resourceId) Constructs a Pub/Sub naming instance.- Parameters:
resourceType
- eitherTOPIC
orSUBSCRIPTION
projectId
- GCP project ID (non-empty)resourceId
- Topic ID or Subscription ID (non-empty)
-
-
Method Details
-
getNamespace
Description copied from interface:Naming.DatasetNaming
Returns the dataset namespace (e.g., URI or ARN identifying the data source).- Specified by:
getNamespace
in interfaceNaming.DatasetNaming
- Returns:
- the namespace string
-
getName
Description copied from interface:Naming.DatasetNaming
Returns the dataset name specific to the platform format.- Specified by:
getName
in interfaceNaming.DatasetNaming
- Returns:
- the dataset name string
-
builder
-