CloudBigtableConfiguration (Google Cloud Dataflow + Cloud Bigtable Connector 0.3.0 API)

com.google.cloud.bigtable.dataflow

Class CloudBigtableConfiguration

  • java.lang.Object
    • com.google.cloud.bigtable.dataflow.CloudBigtableConfiguration
    • Constructor Detail

      • CloudBigtableConfiguration

        public CloudBigtableConfiguration(String projectId,
                                          String zoneId,
                                          String clusterId,
                                          Map<String,String> additionalConfiguration)
        Creates a CloudBigtableConfiguration using the specified project ID, zone, and cluster ID.
        Parameters:
        projectId - The project ID for the cluster.
        zoneId - The zone where the cluster is located.
        clusterId - The cluster ID for the cluster.
        additionalConfiguration - A Map with additional connection configuration. See BigtableOptionsFactory.fromConfiguration(Configuration) for more information about configuration options.
    • Method Detail

      • getProjectId

        public String getProjectId()
        Gets the project ID for the Cloud Bigtable cluster.
        Returns:
        The project ID for the cluster.
      • getZoneId

        public String getZoneId()
        Gets the zone where the Cloud Bigtable cluster is located.
        Returns:
        The zone where the cluster is located.
      • getClusterId

        public String getClusterId()
        Gets the cluster ID for the Cloud Bigtable cluster.
        Returns:
        The cluster ID for the cluster.
      • toBigtableOptions

        public com.google.cloud.bigtable.config.BigtableOptions toBigtableOptions()
                                                                           throws IOException
        Converts the CloudBigtableConfiguration to a BigtableOptions object.
        Returns:
        The BigtableOptions object.
        Throws:
        IOException
      • toHBaseConfig

        public org.apache.hadoop.conf.Configuration toHBaseConfig()
        Converts the CloudBigtableConfiguration to an HBase Configuration.
        Returns:
        The Configuration.
      • getConfiguration

        protected com.google.common.collect.ImmutableMap<String,String> getConfiguration()
        Gets an immutable copy of the configuration map.
      • equals

        public boolean equals(Object obj)
        Compares this configuration with the specified object.
        Overrides:
        equals in class Object
        Parameters:
        obj - The object to compare this configuration against.
        Returns:
        true if the given object has the same configuration, false otherwise.


Send feedback about...

Cloud Bigtable Documentation