public class SimpleFeaturesReader extends Object implements FeaturesReader
Modifier and Type | Method and Description |
---|---|
static <I,F> SimpleFeaturesReader |
get()
Returns and instance of this class.
|
<I,F> Stream<org.jooq.lambda.tuple.Tuple3<I,F,Double>> |
read(InputStream in,
Parser<I> ip,
Parser<F> fp)
Reads item-feature-value triples from an input stream.
|
<I,F> Stream<org.jooq.lambda.tuple.Tuple3<I,F,Double>> |
read(String in,
Parser<I> ip,
Parser<F> fp)
Reads item-feature-value triples from a file.
|
public static <I,F> SimpleFeaturesReader get()
I
- item typeF
- feat typepublic <I,F> Stream<org.jooq.lambda.tuple.Tuple3<I,F,Double>> read(String in, Parser<I> ip, Parser<F> fp) throws IOException
FeaturesReader
read
in interface FeaturesReader
I
- item typeF
- feat typein
- path to fileip
- item parserfp
- feat parserIOException
- when I/O problemspublic <I,F> Stream<org.jooq.lambda.tuple.Tuple3<I,F,Double>> read(InputStream in, Parser<I> ip, Parser<F> fp) throws IOException
FeaturesReader
read
in interface FeaturesReader
I
- item typeF
- feat typein
- input stream to readip
- item parserfp
- feat parserIOException
- when I/O problemsCopyright © 2016. All rights reserved.