Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

Commit 7e06d16

Browse files
committed
format
1 parent 2da37ec commit 7e06d16

2 files changed

Lines changed: 37 additions & 1 deletion

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Copyright 2018 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package com.google.cloud.bigtable.data.v2;
17+
18+
import com.google.cloud.bigtable.data.v2.models.Row;
19+
import com.google.cloud.bigtable.data.v2.models.TableId;
20+
21+
public class Main {
22+
23+
public static void main(String[] args) throws Exception {
24+
try (BigtableDataClient client =
25+
BigtableDataClient.create("google.com:cloud-bigtable-dev", "mattiefu-test")) {
26+
27+
for (int i = 0; i < 100; i++) {
28+
Row row = client.readRow(TableId.of("benchmark"), "key-0");
29+
30+
System.out.println(row.getKey());
31+
32+
Thread.sleep(10000);
33+
}
34+
}
35+
}
36+
}

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/RowSetUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ private static List<RowRange> splitOnLargeRowKey(RowRange range, ByteString larg
185185

186186
// if the end key is on the right of the large row key, set the start key to be large row key
187187
// open.
188-
if (!boundedEnd|| ByteStringComparator.INSTANCE.compare(endKey, largeRowKey) > 0) {
188+
if (!boundedEnd || ByteStringComparator.INSTANCE.compare(endKey, largeRowKey) > 0) {
189189
// handle the edge case where (key, key\0) is an empty range and should be excluded
190190
ByteString nextKey = largeRowKey.concat(ByteString.copyFrom(new byte[] {0}));
191191
EndPoint endPoint = EndPoint.extract(range);

0 commit comments

Comments
 (0)