public class SVMLightParser extends CustomParser
CustomParser.CustomInspectDataOut, CustomParser.DataIn, CustomParser.DataOut, CustomParser.ParserSetup, CustomParser.ParserType, CustomParser.PSetupGuess, CustomParser.StreamData, CustomParser.StreamDataOut, CustomParser.TypeGuesserDataOut
_setup, CHAR_CR, CHAR_DOUBLE_QUOTE, CHAR_LF, CHAR_SINGLE_QUOTE, CHAR_SPACE, CHAR_TAB, MAX_PREVIEW_COLS, MAX_PREVIEW_LINES, STRING_DOMINANCE_RATIO
Constructor and Description |
---|
SVMLightParser(CustomParser.ParserSetup setup) |
Modifier and Type | Method and Description |
---|---|
SVMLightParser |
clone() |
static CustomParser.PSetupGuess |
guessSetup(byte[] bytes)
Try to parse the bytes as svm light format, return SVMParser instance if the input is in svm light format, null otherwise.
|
boolean |
isCompatible(CustomParser p) |
CustomParser.DataOut |
parallelParse(int cidx,
CustomParser.DataIn din,
CustomParser.DataOut dout) |
boolean |
parallelParseSupported() |
headers, isEOL, isWhitespace, streamParse, streamParse
frozenType, init, newInstance, read, toDocField, write, writeJSON, writeJSONFields
public SVMLightParser(CustomParser.ParserSetup setup)
public SVMLightParser clone()
clone
in class CustomParser
public boolean parallelParseSupported()
parallelParseSupported
in class CustomParser
public static CustomParser.PSetupGuess guessSetup(byte[] bytes)
bytes
- public boolean isCompatible(CustomParser p)
isCompatible
in class CustomParser
public final CustomParser.DataOut parallelParse(int cidx, CustomParser.DataIn din, CustomParser.DataOut dout)
parallelParse
in class CustomParser