accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joshelser <...@git.apache.org>
Subject [GitHub] accumulo pull request: ACCUMULO-3602 BatchScanner optimization for...
Date Thu, 02 Apr 2015 02:16:50 GMT
Github user joshelser commented on a diff in the pull request:

    https://github.com/apache/accumulo/pull/25#discussion_r27628588
  
    --- Diff: core/src/main/java/org/apache/accumulo/core/client/mapred/AbstractInputFormat.java
---
    @@ -458,53 +512,27 @@ public void initialize(InputSplit inSplit, JobConf job) throws IOException
{
             columns = tableConfig.getFetchedColumns();
           }
     
    -      try {
    -        log.debug("Creating connector with user: " + principal);
    -        log.debug("Creating scanner for table: " + table);
    -        log.debug("Authorizations are: " + authorizations);
    -        if (isOffline) {
    -          scanner = new OfflineScanner(instance, new Credentials(principal, token), split.getTableId(),
authorizations);
    -        } else if (instance instanceof MockInstance) {
    -          scanner = instance.getConnector(principal, token).createScanner(split.getTableName(),
authorizations);
    -        } else {
    -          ClientConfiguration clientConf = getClientConfiguration(job);
    -          ClientContext context = new ClientContext(instance, new Credentials(principal,
token), clientConf);
    -          scanner = new ScannerImpl(context, split.getTableId(), authorizations);
    -        }
    -        if (isIsolated) {
    -          log.info("Creating isolated scanner");
    -          scanner = new IsolatedScanner(scanner);
    -        }
    -        if (usesLocalIterators) {
    -          log.info("Using local iterators");
    -          scanner = new ClientSideIteratorScanner(scanner);
    -        }
    -        setupIterators(job, scanner, split.getTableName(), split);
    -      } catch (Exception e) {
    -        throw new IOException(e);
    -      }
    -
           // setup a scanner within the bounds of this split
    -      for (Pair<Text,Text> c : columns) {
    +      for (Pair<Text, Text> c : columns) {
    --- End diff --
    
    Extra unnecessary space.


---
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