|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsbrt.shell.io.SmoFileSource<K,V>
K
- the key type.V
- the value type.public class SmoFileSource<K,V>
This class is used to provided a source of serialized map output files.
Constructor Summary | |
---|---|
SmoFileSource(java.util.Iterator<java.lang.String> fileNameSource,
FileFormat fileFormat,
java.util.Set<? extends K> keys)
Constructs a new source of serialized map output files. |
Method Summary | |
---|---|
FileFormat |
getFileFormat()
Returns the format used to create files of type SmoFile. |
boolean |
hasNext()
Indicates if this iterator can return another file using the next() method
. |
SmoFile<K,V> |
next()
Returns the next column-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 SmoFileSource(java.util.Iterator<java.lang.String> fileNameSource, FileFormat fileFormat, java.util.Set<? extends K> keys)
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.
null
is not allowed.
java.lang.NullPointerException
- if any argument is null
.Method Detail |
---|
public FileFormat getFileFormat()
public boolean hasNext()
next()
method
.
hasNext
in interface java.util.Iterator<SmoFile<K,V>>
true
if this iterator can return another file;
false
otherwise.public SmoFile<K,V> next()
next
in interface java.util.Iterator<SmoFile<K,V>>
public void remove()
UnsupportedOperationException
.
remove
in interface java.util.Iterator<SmoFile<K,V>>
java.lang.UnsupportedOperationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |