public class SvmLightStream extends AbstractLineStream
| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
addSparseVector |
(package private) long |
lineNumber |
(package private) static org.slf4j.Logger |
log |
(package private) String |
sparseKey |
attributes, encoding, readerclosed, count, id, in, limit, prefix, seqId, sequenceKey, urlSOURCE_KEY| Constructor and Description |
|---|
SvmLightStream(InputStream in) |
SvmLightStream(SourceURL url) |
SvmLightStream(SourceURL url,
String sparseVectorKey) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getSparseKey() |
static Data |
parseLine(Data item,
String line) |
static Data |
parseLine(Data item,
String line,
String sparseKey)
This method parses a single line into a data item.
|
Data |
readNext() |
void |
setSparseKey(String sparseKey) |
getEncoding, init, readLine, setEncodinggetId, getInputStream, getLimit, getPrefix, getSequenceKey, getUrl, read, setId, setLimit, setPrefix, setSequenceKey, setUrlstatic org.slf4j.Logger log
long lineNumber
boolean addSparseVector
String sparseKey
public SvmLightStream(SourceURL url, String sparseVectorKey) throws Exception
Exceptionpublic SvmLightStream(InputStream in) throws Exception
Exceptionpublic String getSparseKey()
public void setSparseKey(String sparseKey)
sparseKey - the sparseKey to setpublic Data readNext() throws Exception
readNext in class AbstractStreamExceptionstream.io.AbstractStream#readNext(stream.Data)public static Data parseLine(Data item, String line, String sparseKey) throws Exception
item - line - Exceptionpublic void close()
close in interface Sourceclose in class AbstractLineStreamSource.close()Copyright © 2018. All rights reserved.