|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsbrt.shell.io.RomoFileSource<K,V>
K
- the key type.V
- the value type.public class RomoFileSource<K,V>
This class is used to provided a source of row-oriented map output files.
Constructor Summary | |
---|---|
RomoFileSource(java.util.Iterator<java.lang.String> fileNameSource,
FileFormat fileFormat,
MapFormat<K,V> mapFormat)
Constructs a new source of row-oriented map output files. |
|
RomoFileSource(java.util.Iterator<java.lang.String> fileNameSource,
FileFormat fileFormat,
java.util.Set<? extends K> keys,
MapFormat<K,V> mapFormat)
Constructs a new source of row-oriented map output files. |
|
RomoFileSource(java.util.Iterator<java.lang.String> fileNameSource,
FileFormat fileFormat,
java.lang.String keys,
MapFormat<K,V> mapFormat)
Constructs a new source of row-oriented map output files. |
Method Summary | |
---|---|
FileFormat |
getFileFormat()
Returns the format used to create files of type RomoFile. |
MapFormat<K,V> |
getLineFormat()
Returns the map format used to create files of type RomoFile. |
boolean |
hasNext()
Indicates if this iterator can return another file using the next() method
. |
RomoFile<K,V> |
next()
Returns the next row-oriented map output 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 RomoFileSource(java.util.Iterator<java.lang.String> fileNameSource, FileFormat fileFormat, java.util.Set<? extends K> keys, MapFormat<K,V> mapFormat)
fileNameSource
- the file name source.fileFormat
- the file format used to write files.keys
- the keys whose values will be
written to the files produced by this source. If null
,
all values from every added map will be written to this file.mapFormat
- the format used to write string
representations of maps.
java.lang.NullPointerException
- if any argument except keys
is null
.public RomoFileSource(java.util.Iterator<java.lang.String> fileNameSource, FileFormat fileFormat, java.lang.String keys, MapFormat<K,V> mapFormat)
fileNameSource
- the file name source.fileFormat
- the file format used to write files.keys
- a string representation of the keys whose values will be
written to the files produced by this source.mapFormat
- the format used to write string
representations of maps.
java.lang.NullPointerException
- if any argument is null
.public RomoFileSource(java.util.Iterator<java.lang.String> fileNameSource, FileFormat fileFormat, MapFormat<K,V> mapFormat)
fileNameSource
- the file name source.fileFormat
- the file format used to write files.mapFormat
- the format used to write 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<RomoFile<K,V>>
true
if this iterator can return another file;
false
otherwise.public RomoFile<K,V> next()
next
in interface java.util.Iterator<RomoFile<K,V>>
public void remove()
UnsupportedOperationException
.
remove
in interface java.util.Iterator<RomoFile<K,V>>
java.lang.UnsupportedOperationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |