public class CommonRowParser.QuotedParser extends CommonRowParser.AbstractFieldParser
Modifier and Type | Field and Description |
---|---|
protected TypeParser |
nestedParser |
protected byte[] |
quoteBytes |
scratchDecimal
Constructor and Description |
---|
QuotedParser(TypeParser nestedParser) |
QuotedParser(TypeParser nestedParser,
byte[] quoteBytes) |
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
protected byte[] quoteBytes
protected TypeParser nestedParser
public QuotedParser(TypeParser nestedParser)
public QuotedParser(TypeParser nestedParser, byte[] quoteBytes)
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.