|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsbrt.shell.io.RomiFileSource<K,V>
K
- the key type.V
- the value type.public class RomiFileSource<K,V>
This class is used to provided a source of row-oriented map input files.
Constructor Summary | |
---|---|
RomiFileSource(java.util.Iterator<java.lang.String> fileNameSource,
FileFormat fileFormat,
MapFormat<K,V> mapFormat)
Constructs a new source of row-oriented map input files. |
|
RomiFileSource(java.util.Iterator<java.lang.String> fileNameSource,
FileFormat fileFormat,
java.util.Set<? extends K> requiredKeys,
MapFormat<K,V> mapFormat)
Constructs a new source of row-oriented map input files. |
|
RomiFileSource(java.util.Iterator<java.lang.String> fileNameSource,
MapFormat<K,V> mapFormat)
Constructs a new source of row-oriented map input files. |
Method Summary | |
---|---|
FileFormat |
getFileFormat()
Returns the format used to create files of type RomiFile. |
MapFormat<K,V> |
getLineFormat()
Returns the map format used to create files of type RomiFile. |
boolean |
hasNext()
Indicates if this iterator can return another file using the next() method
. |
RomiFile<K,V> |
next()
Returns the next row-oriented map input file with the next name returned by the file name source. |
void |
remove()
Throws UnsupportedOperationException . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RomiFileSource(java.util.Iterator<java.lang.String> fileNameSource, FileFormat fileFormat, java.util.Set<? extends K> requiredKeys, MapFormat<K,V> mapFormat)
fileNameSource
- the file name source.fileFormat
- the file format used to read files.requiredKeys
- the keys required to be present in each input file.mapFormat
- the format used to read string
representations of maps.
java.lang.NullPointerException
- if any argument is null
.public RomiFileSource(java.util.Iterator<java.lang.String> fileNameSource, FileFormat fileFormat, MapFormat<K,V> mapFormat)
fileNameSource
- the file name source.fileFormat
- the file format used to read files.mapFormat
- the format used to read string
representations of maps.
java.lang.NullPointerException
- if any argument is null
.public RomiFileSource(java.util.Iterator<java.lang.String> fileNameSource, MapFormat<K,V> mapFormat)
fileNameSource
- the file name source.mapFormat
- the format used to read string
representations of maps.
java.lang.NullPointerException
- if any argument is null
.Method Detail |
---|
public MapFormat<K,V> getLineFormat()
public FileFormat getFileFormat()
public boolean hasNext()
next()
method
.
hasNext
in interface java.util.Iterator<RomiFile<K,V>>
true
if this iterator can return another file;
false
otherwise.public RomiFile<K,V> next()
next
in interface java.util.Iterator<RomiFile<K,V>>
public void remove()
UnsupportedOperationException
.
remove
in interface java.util.Iterator<RomiFile<K,V>>
java.lang.UnsupportedOperationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |