|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsbrt.shell.io.AbstractMapOutputFile<K,V>
sbrt.shell.io.ComoFile<K,V>
K
- the key type.V
- the value type.public class ComoFile<K,V>
This class is used to write maps to text files in a column-oriented way.
Constructor Summary | |
---|---|
ComoFile(java.lang.String fileName,
FileFormat fileFormat,
java.util.Set<? extends K> columnHeaderVariables,
MapFormat<K,V> vectorFormat)
Constructs a new column-oriented map output file from the provided arguments. |
|
ComoFile(java.lang.String fileName,
FileFormat fileFormat,
java.lang.String allColumnHeaderVariables,
MapFormat<K,V> vectorFormat)
Constructs a new column-oriented vector output file from the provided arguments. |
|
ComoFile(java.lang.String fileName,
java.util.Set<? extends K> columnHeaderVariables,
MapFormat<K,V> vectorFormat)
Constructs a new text-based column-oriented map output file from the provided arguments. |
Method Summary | |
---|---|
void |
addData(java.util.Map<? extends K,? extends V> map)
Writes the appropriate values of the provided vector to this file. |
Methods inherited from class sbrt.shell.io.AbstractMapOutputFile |
---|
breakPoint, close, getCanonicalName, getFilterKeys, getMapFormat, getName, getOriginalName, isClosed, writeLine |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface sbrt.kernel.io.ResultsManager |
---|
addData |
Constructor Detail |
---|
public ComoFile(java.lang.String fileName, FileFormat fileFormat, java.util.Set<? extends K> columnHeaderVariables, MapFormat<K,V> vectorFormat)
fileName
- the name of the file to create.fileFormat
- the format of the file to create.columnHeaderVariables
- the variables whose values
will be
written to this file. If null
, all values
from every added vector will be written to this file.vectorFormat
- the vector format.
java.lang.NullPointerException
- if any argument except
variables
is null
.public ComoFile(java.lang.String fileName, FileFormat fileFormat, java.lang.String allColumnHeaderVariables, MapFormat<K,V> vectorFormat)
fileName
- the name of the file to create.fileFormat
- the format of the file to create.allColumnHeaderVariables
- a string representation of the
variables whose values will be written to this file. This
string is parsed by the provided vector format.vectorFormat
- the vector format.
java.lang.NullPointerException
- if any argument is null
.public ComoFile(java.lang.String fileName, java.util.Set<? extends K> columnHeaderVariables, MapFormat<K,V> vectorFormat)
fileName
- the name of the file to create.columnHeaderVariables
- the variables whose values
will be written to this file.vectorFormat
- the vector format.
java.lang.NullPointerException
- if any argument except
variables
is null
.Method Detail |
---|
public void addData(java.util.Map<? extends K,? extends V> map)
map
- the vector to be written to this file.
java.lang.IllegalArgumentException
- if the provided
vector does not contain all the variables in the
set returned by AbstractMapOutputFile.getFilterKeys().
java.lang.IllegalStateException
- if close()
has already been called.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |