Todas as amostras de código do Bigtable

This page contains code samples for Cloud Bigtable. To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser.

App Engine

Samples related to using Cloud Bigtable with App Engine.

Apply a label

Creates a filter that applies a label.

View in documentation

AppProfile details

Retrieve AppProfile details.

Bigtable quickstart

Quickstart for Cloud Bigtable which shows connecting to an instance and reading a row from a table.

View in documentation

Bigtable quickstart (HBase)

Quickstart for Cloud Bigtable which shows connecting to an instance and reading a row from a table.

View in documentation

Check if a column family exists

Check if a column family exists.

Check if a table exists

Check if a table exists.

Cloud Functions quickstart

Use Bigtable within a Cloud Functions.

View in documentation

Conditionally write a value

Send a conditional write request. This type of write makes a CheckAndMutateRow API request.

View in documentation

Conditionally write a value (HBase)

Send a conditional write request. This type of write makes a CheckAndMutateRow API request.

View in documentation

CPU load measurement

Returns the most recent Cloud Bigtable CPU load measurement.

View in documentation

Create a block all filter

Creates a block all filter.

View in documentation

Create a block all filter (HBase)

Creates a block all filter.

View in documentation

Create a cluster

Create a cluster in the current project, given an instance ID.

Create a pass all filter

Creates a pass all filter.

View in documentation

Create a production instance

Create a production instance in the current project.

Create a replicated cluster

Create a replicated cluster in the current project.

Create a table (HBase)

Create a table.

Create an AppProfile

Create an AppProfile.

Create the connection (HBase)

Create the connection to Cloud Bigtable.

Delete a cluster

Delete a cluster, given a project ID and instance ID.

Delete a table (HBase)

Delete a table.

Delete an AppProfile

Delete an AppProfile.

Delete an instance

Delete an instance from the current project, given an instance ID.

Delete columns with mutate

Delete columns within a row using mutate.

Delete rows with a prefix

Delete rows with row keys matching a given prefix.

Delete rows with mutate

Delete rows using mutate.

Filter on a range of columns

Creates a limiting filter on a range of columns.

View in documentation

Filter on a range of columns (HBase)

Creates a limiting filter on a range of columns.

View in documentation

Get cluster details

Get cluster details given the instance ID in the current project.

Get instance details

Get instance details given the instance ID in the current project.

Get or create a column family

Autocreate a column family if it does not exist.

Get or create a table

Get table details if it exists, or autocreate a table if it does not exist.

Get table metadata and apply a view

Get table metadata and apply the name view to table fields.

Import modules (HBase)

Import the necessary modules to run the sample.

Increment a cell

Send a write request that increments an existing numeric value. This type of write makes a ReadModifyWriteRow API request.

View in documentation

Increment a cell (HBase)

Send a write request that increments an existing numeric value. This type of write makes a ReadModifyWriteRow API request.

View in documentation

Insert rows using mutate (HBase)

Insert rows using mutate.

Insert rows with mutate

Insert rows using mutate.

Intersection garbage-collection policy

Create a column family with an intersection garbage-collection policy (age and versions).

View in documentation

Limit cells per column

Creates a limiting filter on cells per column.

View in documentation

Limit cells per column (HBase)

Creates a limiting filter on cells per column.

View in documentation

Limit cells per row

Creates a limiting filter on cells per row.

View in documentation

Limit cells per row (HBase)

Creates a limiting filter on cells per row.

View in documentation

Limit cells per row offset

Creates a limiting filter offsetting cells per row.

View in documentation

Limit cells per row offset (HBase)

Creates a limiting filter offsetting cells per row.

View in documentation

List clusters

List all of the cluster names in an instance.

List clusters

Lists the clusters in the instance.

List column families

List column families.

List instances

List the instances in the current project.

List tables

List all tables in a Cloud Bigtable instance.

Maximum age

Create a column family with an age-based garbage-collection policy.

View in documentation

Maximum number of versions

Create a column family with a garbage-collection policy that states the number of versions to keep.

View in documentation

Mix mutations

Mix and match mutation operations such as inserting rows and deleting a column.

Multiple prefixes

Read rows with row keys matching any prefix in a list.

Nested garbage-collection policy

Create a column family with a nested garbage-collection policy, if supported.

View in documentation

Perform a simple write

Performing a simple write API call: MutateRow. Make sure samples use multiple SetCells (mutations).

View in documentation

Perform a simple write (HBase)

Performing a simple write API call: MutateRow. Make sure samples use multiple SetCells (mutations).

View in documentation

Perform batch writes

Write multiple rows at once. This type of write makes a MutateRows API request.

View in documentation

Perform batch writes (HBase)

Write multiple rows at once. This type of write makes a MutateRows API request.

View in documentation

Read a partial row

Read a row with a specified filter.

View in documentation

Read a partial row (HBase)

Read a row with a specified filter.

View in documentation

Read a row (HBase)

Read a row.

View in documentation

Read a row range

Read rows with a specified range.

View in documentation

Read all (HBase)

Perform a full table scan.

Read and print (HBase)

Read and print a row.

Read by keys

Read using a noncontiguous set of row keys.

Read by keys

Read using a noncontiguous set of row keys.

Read by keys (HBase)

Read using a noncontiguous set of row keys.

Read data

Read data from Cloud Bigtable with Apache Beam.

View in documentation

Read row ranges

Read rows with multiple ranges.

View in documentation

Read row ranges (HBase)

Read rows with multiple ranges.

View in documentation

Read row ranges (HBase)

Read rows with multiple ranges.

View in documentation

Read rows (HBase)

Reads multiple rows.

View in documentation

Read rows with a prefix

Create a query with a prefix.

View in documentation

Read rows with a prefix (HBase)

Create a query with a prefix.

View in documentation

Read using a chain filter

Creates a composite filter using chaining.

View in documentation

Read using a chain filter (HBase)

Creates a composite filter using chaining.

View in documentation

Read using a conditional filter

Creates a composite filter using a conditional.

View in documentation

Read using a family regex filter

Creates a limiting filter on a column family with a regex.

View in documentation

Read using a family regex filter (HBase)

Creates a limiting filter on a column family with a regex.

View in documentation

Read using a qualifier regex filter

Creates a limiting filter on a column qualifier with a regex.

View in documentation

Read using a qualifier regex filter (HBase)

Creates a limiting filter on a column qualifier with a regex.

View in documentation

Read using a row regex filter

Creates a limiting filter on a row key using a regex.

View in documentation

Read using a row regex filter (HBase)

Creates a limiting filter on a row key using a regex.

View in documentation

Read using a row sample filter

Creates a limiting filter on rows using a random sampling.

View in documentation

Read using a row sample filter (HBase)

Creates a limiting filter on rows using a random sampling.

View in documentation

Read using a timestamp range filter

Creates a limiting filter on a range of cell timestamps.

View in documentation

Read using a timestamp range filter (HBase)

Creates a limiting filter on a range of cell timestamps.

View in documentation

Read using a value range filter

Creates a limiting filter on a range of cell values.

View in documentation

Read using a value range filter (HBase)

Creates a limiting filter on a range of cell values.

View in documentation

Read using a value regex filter

Creates a limiting filter on a cell value using a regex.

View in documentation

Read using a value regex filter (HBase)

Creates a limiting filter on a cell value using a regex.

View in documentation

Read using an interleave filter

Creates a composite filter using interleaving.

View in documentation

Read using an interleave filter (HBase)

Creates a composite filter using interleaving.

View in documentation

View in documentation

Read with a filter (HBase)

Read a row with a filter.

View in documentation

Retrieve sample keys

Retrieve sample row keys.

Union garbage-collection policy

Create a column family that has a union garbage-collection policy (age and versions).

View in documentation

Update a garbage-collection rule

Update a column-family garbage-collection rule.

View in documentation

Update an AppProfile

Update an AppProfile.

Update or insert rows

Update or insert rows in a table.

Use a strip value filter

Creates a filter that strips the value.

View in documentation

Write data

Write data to Cloud Bigtable with Apache Beam.

View in documentation