Skip to content

Commit

Permalink
Merge pull request #10 from datadrivencz/fix-hbase-scan-limit
Browse files Browse the repository at this point in the history
 [proxima-hbase] fix settings batch size for limitless scans
  • Loading branch information
je-ik committed Dec 13, 2017
2 parents cdac9c8 + 10ec28a commit d4f7618
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
6 changes: 0 additions & 6 deletions hbase/hbase-bigtable/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,6 @@
<exclude>cz.o2.proxima:platform-core</exclude>
</excludes>
</artifactSet>
<relocations>
<relocation>
<pattern>com.google.</pattern>
<shadedPattern>cz.o2.proxima.bigtable.shaded.com.google.</shadedPattern>
</relocation>
</relocations>
</configuration>
<executions>
<execution>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,14 @@ public void scanWildcard(
get.setFilter(new ColumnPrefixFilter(
wildcard.toAttributePrefix().getBytes(UTF8)));
Scan scan = new Scan(get);
if (limit <= 0) {
limit = Integer.MAX_VALUE;
}
scan.setBatch(limit);
if (stroff != null) {
scan.setFilter(new ColumnPaginationFilter(limit, stroff.off));
}

if (limit <= 0) {
limit = Integer.MAX_VALUE;
}

int accepted = 0;
try (ResultScanner scanner = client.getScanner(scan)) {
Result next;
Expand Down

0 comments on commit d4f7618

Please sign in to comment.