K
- The type of the keys returned by the contained record readersV
- The type of the values returned by the contained record readers
public class MultiRecordReader<K,V>
extends java.lang.Object
A record reader that contains one or more record readers.
The content of all the readers can be read by calling the next() method until the last reader reaches its end.
Readers are iterated in the order they were passed in the constructor
Constructor and Description |
---|
MultiRecordReader(<any>[] readers)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
K |
createKey() |
V |
createValue() |
long |
getPos() |
float |
getProgress() |
boolean |
next(K key, V value) |
public MultiRecordReader(<any>[] readers)
readers
- an array of record readerspublic void close() throws java.io.IOException
java.io.IOException
public K createKey()
public V createValue()
public long getPos() throws java.io.IOException
java.io.IOException
public float getProgress() throws java.io.IOException
java.io.IOException
Copyright © 2017 Oracle and/or its affiliates. All Rights Reserved.