public static final class SinkInfo.Destination.DatasetDestination extends SinkInfo.Destination
SinkInfo.Destination.BucketDestination, SinkInfo.Destination.DatasetDestination, SinkInfo.Destination.TopicDestination, SinkInfo.Destination.Type
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDataset()
Returns the name of the Google Cloud BigQuery dataset this destination represents.
|
String |
getProject()
Returns the name of the project where the Google Cloud BigQuery dataset resides.
|
int |
hashCode() |
static SinkInfo.Destination.DatasetDestination |
of(String dataset)
Creates a
DatasetDestination object given the name of the dataset to be used as
sink destination. |
static SinkInfo.Destination.DatasetDestination |
of(String project,
String dataset)
Creates a
DatasetDestination object given the name of the project and dataset to be
used as sink destination. |
String |
toString() |
getType
public String getProject()
null
, the default project is used.public String getDataset()
public static SinkInfo.Destination.DatasetDestination of(String project, String dataset)
DatasetDestination
object given the name of the project and dataset to be
used as sink destination.public static SinkInfo.Destination.DatasetDestination of(String dataset)
DatasetDestination
object given the name of the dataset to be used as
sink destination. Dataset is assumed to reside in the default project.Copyright © 2019 Google LLC. All rights reserved.