Bigtable v0.5.0 Bigtable.SampleRowKeys View Source

Provides functions to build Google.Bigtable.V2.SampleRowKeysRequest and submit them to Bigtable.

Link to this section Summary

Functions

Builds a Google.Bigtable.V2.SampleRowKeysRequest given a row_key and optional custom table name

Submits a Google.Bigtable.V2.SampleRowKeysRequest to Bigtable

Link to this section Functions

Link to this function

build(table_name \\ Bigtable.Utils.configured_table_name()) View Source
build(binary()) :: Google.Bigtable.V2.SampleRowKeysRequest.t()

Builds a Google.Bigtable.V2.SampleRowKeysRequest given a row_key and optional custom table name.

Defaults to configured table name.

Examples

Default Table

iex> Bigtable.SampleRowKeys.build()
%Google.Bigtable.V2.SampleRowKeysRequest{
  app_profile_id: "",
  table_name: "projects/dev/instances/dev/tables/test",
}

Custom Table

iex> table_name = "projects/[project_id]/instances/[instance_id]/tables/[table_name]"
iex> Bigtable.SampleRowKeys.build(table_name)
%Google.Bigtable.V2.SampleRowKeysRequest{
  app_profile_id: "",
  table_name: "projects/[project_id]/instances/[instance_id]/tables/[table_name]",
}
Link to this function

read() View Source
read() :: {:ok, Google.Bigtable.V2.SampleRowKeysResponse} | {:error, any()}

Link to this function

read(request) View Source
read(Google.Bigtable.V2.SampleRowKeysRequest.t()) ::
  {:ok, Google.Bigtable.V2.SampleRowKeysResponse} | {:error, any()}

Submits a Google.Bigtable.V2.SampleRowKeysRequest to Bigtable.