|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InputComponentIO
interface to read or write InputSequence components to or from a file. A single InputComponentIO is responsible for
reading and writing data at a single location, but may work with multiple components of the input sequence.
| Method Summary | |
|---|---|
java.util.List<java.lang.String> |
getComponentNames()
A list of names of the components of the InputSequence created by this reader. |
void |
readInputSequences(java.lang.String location,
java.util.List<java.util.Map<java.lang.String,InputSequence<?>>> inputs)
reads input sequences from this location. |
void |
writeInputSequences(java.lang.String location,
java.util.List<? extends java.util.Map<java.lang.String,? extends InputSequence<?>>> inputComponents)
writes input sequences to this location. |
| Method Detail |
|---|
java.util.List<java.lang.String> getComponentNames()
void readInputSequences(java.lang.String location,
java.util.List<java.util.Map<java.lang.String,InputSequence<?>>> inputs)
throws java.io.IOException
location - the location of the data to read. Meaning of the location is implementation dependent, but will usually be a file name.inputs - a list of input sequences. For each input sequence, a map is returned that maps component names to their
associated InputSequence objects.
java.io.IOException
void writeInputSequences(java.lang.String location,
java.util.List<? extends java.util.Map<java.lang.String,? extends InputSequence<?>>> inputComponents)
throws java.io.IOException
InputComponentIO optionally can implement this function to provide the ability to write input
data as well as read it. This is used by many of the data manipulation tools, such as those for subsetting and creating cross-validation sets.
location - the location of the data to write. Meaning of the location is implementation dependent, but will usually be a file name.inputComponents - an iterator over input sequences. For each input sequence, a map is returned that maps component names to their
associated InputSequence objects. All components of the input are passed, and this object is reponsible for knowing which components
it should be writing.
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||