Bigtable v0.5.0 Bigtable.CheckAndMutateRow View Source

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

Link to this section Summary

Functions

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

Submits a Google.Bigtable.V2.CheckAndMutateRowRequest to Bigtable

Link to this section Functions

Link to this function

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

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

Defaults to configured table name.

Examples

Default Table

iex> Bigtable.CheckAndMutateRow.build("Test#123")
%Google.Bigtable.V2.CheckAndMutateRowRequest{
  app_profile_id: "",
  false_mutations: [],
  predicate_filter: nil,
  row_key: "Test#123",
  table_name: "projects/dev/instances/dev/tables/test",
  true_mutations: []
}

Custom Table

iex> table_name = "projects/[project_id]/instances/[instnace_id]/tables/[table_name]"
iex> Bigtable.CheckAndMutateRow.build(table_name, "Test#123")
%Google.Bigtable.V2.CheckAndMutateRowRequest{
  app_profile_id: "",
  false_mutations: [],
  predicate_filter: nil,
  row_key: "Test#123",
  table_name: "projects/[project_id]/instances/[instnace_id]/tables/[table_name]",
  true_mutations: []
}
Link to this function

if_false(request, mutations) View Source
if_false(Google.Bigtable.V2.CheckAndMutateRowRequest.t(), [
  Google.Bigtable.V2.Mutation.t()
]) :: Google.Bigtable.V2.CheckAndMutateRowRequest.t()
if_false(
  Google.Bigtable.V2.CheckAndMutateRowRequest.t(),
  Google.Bigtable.V2.Mutation.t()
) :: Google.Bigtable.V2.CheckAndMutateRowRequest.t()

Link to this function

if_true(request, mutations) View Source
if_true(Google.Bigtable.V2.CheckAndMutateRowRequest.t(), [
  Google.Bigtable.V2.Mutation.t()
]) :: Google.Bigtable.V2.CheckAndMutateRowRequest.t()
if_true(
  Google.Bigtable.V2.CheckAndMutateRowRequest.t(),
  Google.Bigtable.V2.Mutation.t()
) :: Google.Bigtable.V2.CheckAndMutateRowRequest.t()

Link to this function

mutate(request) View Source
mutate(Google.Bigtable.V2.CheckAndMutateRowRequest.t()) ::
  {:ok, [Google.Bigtable.V2.CheckAndMutateRowResponse]} | {:error, binary()}

Submits a Google.Bigtable.V2.CheckAndMutateRowRequest to Bigtable.

Link to this function

predicate(request, filter) View Source
predicate(
  Google.Bigtable.V2.CheckAndMutateRowRequest.t(),
  Google.Bigtable.V2.RowFilter.t()
) :: Google.Bigtable.V2.CheckAndMutateRowRequest.t()