water.parser
Class SVMLightParser

java.lang.Object
  extended by water.Iced
      extended by water.parser.CustomParser
          extended by water.parser.SVMLightParser
All Implemented Interfaces:
java.lang.Cloneable, Freezable

public class SVMLightParser
extends CustomParser

Parser for SVM light format.


Nested Class Summary
 
Nested classes/interfaces inherited from class water.parser.CustomParser
CustomParser.CustomInspectDataOut, CustomParser.DataIn, CustomParser.DataOut, CustomParser.ParserSetup, CustomParser.ParserType, CustomParser.PSetupGuess, CustomParser.StreamData, CustomParser.StreamDataOut
 
Field Summary
 
Fields inherited from class water.parser.CustomParser
_setup, CHAR_COMMA, CHAR_CR, CHAR_DOUBLE_QUOTE, CHAR_FF, CHAR_LF, CHAR_NULL, CHAR_SINGLE_QUOTE, CHAR_SPACE, CHAR_TAB, CHAR_VT, MAX_PREVIEW_COLS, MAX_PREVIEW_LINES
 
Constructor Summary
SVMLightParser()
           
SVMLightParser(CustomParser.ParserSetup setup)
           
 
Method Summary
 SVMLightParser clone()
           
static CustomParser.PSetupGuess guessSetup(byte[] bits)
          Try to parse the bits 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()
           
 
Methods inherited from class water.parser.CustomParser
headers, isEOL, isWhitespace, streamParse, streamParse
 
Methods inherited from class water.Iced
frozenType, init, newInstance, read, toDocField, write, writeJSON, writeJSONFields
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVMLightParser

public SVMLightParser()

SVMLightParser

public SVMLightParser(CustomParser.ParserSetup setup)
Method Detail

clone

public SVMLightParser clone()
Specified by:
clone in class CustomParser

parallelParseSupported

public boolean parallelParseSupported()
Overrides:
parallelParseSupported in class CustomParser

guessSetup

public static CustomParser.PSetupGuess guessSetup(byte[] bits)
Try to parse the bits as svm light format, return SVMParser instance if the input is in svm light format, null otherwise.

Parameters:
bits -
Returns:
SVMLightPArser instance or null

isCompatible

public boolean isCompatible(CustomParser p)
Overrides:
isCompatible in class CustomParser

parallelParse

public final CustomParser.DataOut parallelParse(int cidx,
                                                CustomParser.DataIn din,
                                                CustomParser.DataOut dout)
Overrides:
parallelParse in class CustomParser