public class CommonRowParser.StringMatchingCharsetParser extends CommonRowParser.AbstractFieldParser
scratchDecimal
Constructor and Description |
---|
StringMatchingCharsetParser() |
Modifier and Type | Method and Description |
---|---|
void |
closeAllocation() |
java.util.Properties |
getInitProperties() |
void |
init(java.util.Properties props) |
void |
parse(byte[] buf,
int start,
int end,
RowInserter stmt,
int col)
Parses a value from a range of a byte array, and applies it to the row inserer.
|
void |
parse(java.lang.String data,
RowInserter stmt,
int col)
Parses a value directly from a string and puts it into the row inserter
|
setContext, setTreatEmptyStringAsNull, treatingEmptyStringsAsNull, verifyNotEmpty
public void init(java.util.Properties props) throws java.lang.Exception
java.lang.Exception
public java.util.Properties getInitProperties()
public void parse(byte[] buf, int start, int end, RowInserter stmt, int col) throws java.sql.SQLException
TypeParser
buf
- : parse the value buf[start .. (end-1)]stmt
- gets the valuecol
- column in the statement to storejava.sql.SQLException
public void parse(java.lang.String data, RowInserter stmt, int col) throws java.sql.SQLException
TypeParser
data
- the string representation of the value to parsestmt
- where to store the parsed valuecol
- column in the statement to storejava.sql.SQLException
public void closeAllocation()
Copyright (C) 2003-2021 SQLstream, Inc.