|
||||||||||
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.RomoFile<K,V>
K
- the key type.V
- the value type.public class RomoFile<K,V>
This class is used to write maps to text files in a row-oriented way.
Constructor Summary | |
---|---|
RomoFile(java.lang.String fileName,
FileFormat fileFormat,
MapFormat<K,V> vectorFormat)
Constructs a new row-oriented vector output file from the provided arguments. |
|
RomoFile(java.lang.String fileName,
FileFormat fileFormat,
java.util.Set<? extends K> rowHeaderVariables,
MapFormat<K,V> mapFormat)
Constructs a new row-oriented map output file from the provided arguments. |
|
RomoFile(java.lang.String fileName,
FileFormat fileFormat,
java.lang.String allRowHeaderVariables,
MapFormat<K,V> vectorFormat)
Constructs a new row-oriented vector output file from the provided arguments. |
|
RomoFile(java.lang.String fileName,
MapFormat<K,V> vectorFormat)
Constructs a new plain text, row-oriented vector output file from the provided arguments. |
Method Summary | |
---|---|
void |
addData(java.util.Map.Entry<? extends K,? extends V> variableValuePair)
Writes the provided value to this file if the variable is contained in the set returned by AbstractMapOutputFile.getFilterKeys(). |
void |
addData(java.util.Map<? extends K,? extends V> vector)
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 RomoFile(java.lang.String fileName, FileFormat fileFormat, java.util.Set<? extends K> rowHeaderVariables, MapFormat<K,V> mapFormat)
fileName
- the name of the file to create.fileFormat
- the format of the file to create.rowHeaderVariables
- the variables whose values will be
written to this file. If null
, all values
from every added vector will be written to this file.mapFormat
- the vector format.
java.lang.NullPointerException
- if any argument except
rowHeaderVariables
is null
.public RomoFile(java.lang.String fileName, FileFormat fileFormat, java.lang.String allRowHeaderVariables, MapFormat<K,V> vectorFormat)
fileName
- the name of the file to create.fileFormat
- the format of the file to create.allRowHeaderVariables
- 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 RomoFile(java.lang.String fileName, FileFormat fileFormat, MapFormat<K,V> vectorFormat)
fileName
- the name of the file to create.fileFormat
- the format of the file to create.vectorFormat
- the vector format.
java.lang.NullPointerException
- if any argument is null
.public RomoFile(java.lang.String fileName, MapFormat<K,V> vectorFormat)
fileName
- the name of the file to create.vectorFormat
- the vector format.
java.lang.NullPointerException
- if either argument is null
.Method Detail |
---|
public void addData(java.util.Map.Entry<? extends K,? extends V> variableValuePair)
variableValuePair
- the variable-value pair.
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.public void addData(java.util.Map<? extends K,? extends V> vector)
vector
- 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 |