@@ -87,26 +87,30 @@ def main(project_id, instance_id, table_id):
87
87
88
88
# [START bigtable_hw_create_filter]
89
89
# Create a filter to only retrieve the most recent version of the cell
90
- # for each column accross entire row.
90
+ # for each column across entire row.
91
91
row_filter = row_filters .CellsColumnLimitFilter (1 )
92
92
# [END bigtable_hw_create_filter]
93
93
94
94
# [START bigtable_hw_get_with_filter]
95
+ # [START bigtable_hw_get_by_key]
95
96
print ("Getting a single greeting by row key." )
96
97
key = "greeting0" .encode ()
97
98
98
99
row = table .read_row (key , row_filter )
99
100
cell = row .cells [column_family_id ][column ][0 ]
100
101
print (cell .value .decode ("utf-8" ))
102
+ # [END bigtable_hw_get_by_key]
101
103
# [END bigtable_hw_get_with_filter]
102
104
103
105
# [START bigtable_hw_scan_with_filter]
106
+ # [START bigtable_hw_scan_all]
104
107
print ("Scanning for all greetings:" )
105
108
partial_rows = table .read_rows (filter_ = row_filter )
106
109
107
110
for row in partial_rows :
108
111
cell = row .cells [column_family_id ][column ][0 ]
109
112
print (cell .value .decode ("utf-8" ))
113
+ # [END bigtable_hw_scan_all]
110
114
# [END bigtable_hw_scan_with_filter]
111
115
112
116
# [START bigtable_hw_delete_table]
0 commit comments