milleruntime commented on issue #2361: URL: https://github.com/apache/accumulo/issues/2361#issuecomment-974464158
@keith-turner I am having trouble trying to figure out how to merge multiple FileSKVIterator to get one iterable across multiple rfiles. I want to do what `RFileScanner` is doing but not have to worry about creating the iterator stack. I tried doing this: <pre> List<SortedKeyValueIterator<Key,Value>> readers = new ArrayList<>(files.size()); FileSKVIterator reader = FileOperations.getInstance().newIndexReaderBuilder()...build(); readers.add(reader); var iterator = new MultiIterator(readers, false); </pre> But I am getting an `UnsupportedOperationException` in `MultiIndexIterator` when calling iterator.seek(). I started to rewrite it to use `new RFile.Reader(cb)` like the `PrintInfo` command does but wasn't sure if that would work either. Any ideas? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
