Package com.google.cloud.biglake.hive.v1beta


@Generated("by gapic-generator-java") package com.google.cloud.biglake.hive.v1beta
A client to BigLake API

The interfaces provided are listed below, along with usage samples.

======================= HiveMetastoreServiceClient =======================

Service Description: Hive Metastore Service is a biglake service that allows users to manage their external Hive catalogs. Full API compatibility with OSS Hive Metastore APIs is not supported. The methods match the Hive Metastore API spec mostly except for a few exceptions. These include listing resources with pattern, environment context which are combined in a single List API, return of ListResponse object instead of a list of resources, transactions, locks, etc.

The BigLake Hive Metastore API defines the following resources:

  • A collection of Google Cloud projects: `/projects/*`
  • Each project has a collection of catalogs: `/catalogs/*`
  • Each catalog has a collection of databases: `/databases/*`
  • Each database has a collection of tables: `/tables/*`

Sample for HiveMetastoreServiceClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (HiveMetastoreServiceClient hiveMetastoreServiceClient =
     HiveMetastoreServiceClient.create()) {
   ProjectName parent = ProjectName.of("[PROJECT]");
   HiveCatalog hiveCatalog = HiveCatalog.newBuilder().build();
   String hiveCatalogId = "hiveCatalogId-575314556";
   HiveCatalog response =
       hiveMetastoreServiceClient.createHiveCatalog(parent, hiveCatalog, hiveCatalogId);
 }