accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joshelser <>
Subject [GitHub] accumulo pull request #275: ACCUMULO-4667 Reworked the LocalityGroupIterator...
Date Wed, 12 Jul 2017 17:31:16 GMT
Github user joshelser commented on a diff in the pull request:
    --- Diff: core/src/main/java/org/apache/accumulo/core/iterators/system/
    @@ -97,75 +134,122 @@ public static final int seek(HeapIterator hiter, LocalityGroup[]
groups, Set<Byt
           cfSet = Collections.emptySet();
    -    for (LocalityGroup lgr : groups) {
    -      // when include is set to true it means this locality groups contains
    -      // wanted column families
    -      boolean include = false;
    +    // determine the set of groups to use
    +    Collection<LocalityGroup> groupsToUse = Collections.EMPTY_LIST;
    --- End diff --
    `Collections.emptyList()` instead? From the method javadoc:
    > Using this method is likely to have comparable cost to using the like-named field.
 (Unlike this method, the field does not provide type safety.)

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 or file a JIRA ticket
with INFRA.

View raw message