Class SinkInfo.Destination.DatasetDestination (3.16.2)

public static final class SinkInfo.Destination.DatasetDestination extends SinkInfo.Destination

Class for specifying a Google Cloud BigQuery dataset as destination for the sink.

Inheritance

Object > SinkInfo.Destination > SinkInfo.Destination.DatasetDestination

Static Methods

of(String dataset)

public static SinkInfo.Destination.DatasetDestination of(String dataset)

Creates a DatasetDestination object given the name of the dataset to be used as sink destination. Dataset is assumed to reside in the default project.

Parameter
NameDescription
datasetString
Returns
TypeDescription
SinkInfo.Destination.DatasetDestination

of(String project, String dataset)

public 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.

Parameters
NameDescription
projectString
datasetString
Returns
TypeDescription
SinkInfo.Destination.DatasetDestination

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDataset()

public String getDataset()

Returns the name of the Google Cloud BigQuery dataset this destination represents.

Returns
TypeDescription
String

getProject()

public String getProject()

Returns the name of the project where the Google Cloud BigQuery dataset resides. If null, the default project is used.

Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toString()

public String toString()
Returns
TypeDescription
String
Overrides