You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2018/11/29 21:37:09 UTC
[GitHub] milleruntime commented on issue #749: Add Multi table functionality
to new MapReduce API
milleruntime commented on issue #749: Add Multi table functionality to new MapReduce API
URL: https://github.com/apache/accumulo/issues/749#issuecomment-443002268
I am wondering what the best way to do this would be... have an intermediate method such as "add()" to signal more tables are going to be added?
```java
AccumuloInputFormat.configure().clientInfo(info).table(name).auths(auths).add()
.table(name2).auths(auths2).ranges(myRanges).add()
.table(name3).auths(auths3).fetchColumns(cols).samplerConfiguration(conf).store(job);
```
This would allow for looping, if tables have the same configuration:
```java
TableParams opts = AccumuloInputFormat.configure().clientInfo(info);
for (int x = 0; x < 10; x++) {
opts = opts.table("table" + x).auths(myAuths).ranges(myRanges).add()
}
opts.store(job);
```
Or maybe call the method "next()"?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services