phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JamesRTaylor <...@git.apache.org>
Subject [GitHub] phoenix pull request: PHOENIX-2417 Compress memory used by row key...
Date Sat, 16 Jan 2016 02:31:06 GMT
Github user JamesRTaylor commented on a diff in the pull request:

    https://github.com/apache/phoenix/pull/147#discussion_r49925681
  
    --- Diff: phoenix-core/src/main/java/org/apache/phoenix/iterate/BaseResultIterators.java
---
    @@ -510,14 +532,18 @@ private static String toString(List<byte[]> gps) {
                     endRegionKey = regionInfo.getEndKey();
                     keyOffset = ScanUtil.getRowKeyOffset(regionInfo.getStartKey(), endRegionKey);
                 }
    -            while (guideIndex < gpsSize
    -                    && (Bytes.compareTo(currentGuidePost = gps.get(guideIndex),
endKey) <= 0 || endKey.length == 0)) {
    -                Scan newScan = scanRanges.intersectScan(scan, currentKey, currentGuidePost,
keyOffset, false);
    -                scans = addNewScan(parallelScans, scans, newScan, currentGuidePost, false,
regionLocation);
    -                currentKey = currentGuidePost;
    -                guideIndex++;
    -            }
    -            Scan newScan = scanRanges.intersectScan(scan, currentKey, endKey, keyOffset,
true);
    +            try {
    +                while (guideIndex < gpsSize && (currentGuidePost.compareTo(endKey)
<= 0 || endKey.length == 0)) {
    +                    Scan newScan = scanRanges.intersectScan(scan, currentKeyBytes, currentGuidePostBytes,
keyOffset,
    +                            false);
    +                    scans = addNewScan(parallelScans, scans, newScan, currentGuidePostBytes,
false, regionLocation);
    +                    currentKeyBytes = currentGuidePost.copyBytes();
    --- End diff --
    
    And here


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message