public class CSVPatternFilter extends IOFilter
compressed, file, parser, streamSize, writer| Constructor and Description |
|---|
CSVPatternFilter(char separator,
int inputCount,
int targetCount,
boolean header,
int streamSize)
Constructs the CSV pattern filter.
|
CSVPatternFilter(int inputCount,
int targetCount)
Constructs the CSV pattern filter with a comma separator and no header.
|
| Modifier and Type | Method and Description |
|---|---|
Storable |
load(Storable storable)
Loads data from a CSV pattern file.
|
protected java.util.List<java.lang.Double> |
readValues(StreamParser parser,
int count,
char separator,
java.util.List<java.lang.Double> values)
Reads maximally 'count' double values from a pattern file.
|
void |
reset()
Resets the filter to an initial state.
|
void |
save(Storable storable)
Saves a pattern set to a CSV file.
|
createInputStream, createOutputStream, getFile, getStreamSize, isCompressed, isStreaming, setCompressed, setFilepublic CSVPatternFilter(int inputCount,
int targetCount)
inputCount - the number of input valuestargetCount - the number of target valuespublic CSVPatternFilter(char separator,
int inputCount,
int targetCount,
boolean header,
int streamSize)
separator - the separating characterinputCount - the number of input valuestargetCount - the number of target valuesheader - true, if header record existsstreamSize - the number of patterns to be streamed in a stream loadpublic Storable load(Storable storable) throws java.io.IOException
public void save(Storable storable) throws java.io.IOException
protected java.util.List<java.lang.Double> readValues(StreamParser parser, int count, char separator, java.util.List<java.lang.Double> values)
readValues in class IOFilterparser - the parsercount - the number of values to readseparator - the character separating the valuesvalues - a container for the values, if null it is created