public class TextRowProtocol extends RowProtocol
BIT_LAST_FIELD_NOT_NULL, BIT_LAST_FIELD_NULL, BIT_LAST_ZERO_DATE, buf, index, isIntegerRegex, lastValueNull, length, maxFieldSize, NULL_LENGTH, options, pos, TEXT_LOCAL_DATE_TIME, TEXT_OFFSET_DATE_TIME, TEXT_ZONED_DATE_TIME, TINYINT1_IS_BIT, YEAR_IS_DATE_TYPE
Constructor and Description |
---|
TextRowProtocol(int maxFieldSize,
Options options)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
BigDecimal |
getInternalBigDecimal(ColumnInformation columnInfo)
Get BigDecimal from raw text format.
|
BigInteger |
getInternalBigInteger(ColumnInformation columnInfo)
Get BigInteger format from raw text format.
|
boolean |
getInternalBoolean(ColumnInformation columnInfo)
Get boolean from raw text format.
|
byte |
getInternalByte(ColumnInformation columnInfo)
Get byte from raw text format.
|
Date |
getInternalDate(ColumnInformation columnInfo,
Calendar cal,
TimeZone timeZone)
Get date from raw text format.
|
double |
getInternalDouble(ColumnInformation columnInfo)
Get double from raw text format.
|
float |
getInternalFloat(ColumnInformation columnInfo)
Get float from raw text format.
|
int |
getInternalInt(ColumnInformation columnInfo)
Get int from raw text format.
|
LocalDate |
getInternalLocalDate(ColumnInformation columnInfo,
TimeZone timeZone)
Get LocalDate format from raw text format.
|
LocalTime |
getInternalLocalTime(ColumnInformation columnInfo,
TimeZone timeZone)
Get LocalTime format from raw text format.
|
long |
getInternalLong(ColumnInformation columnInfo)
Get long from raw text format.
|
Object |
getInternalObject(ColumnInformation columnInfo,
TimeZone timeZone)
Get Object from raw text format.
|
OffsetTime |
getInternalOffsetTime(ColumnInformation columnInfo,
TimeZone timeZone)
Get OffsetTime format from raw text format.
|
short |
getInternalShort(ColumnInformation columnInfo)
Get short from raw text format.
|
String |
getInternalString(ColumnInformation columnInfo,
Calendar cal,
TimeZone timeZone)
Get String from raw text format.
|
Time |
getInternalTime(ColumnInformation columnInfo,
Calendar cal,
TimeZone timeZone)
Get time from raw text format.
|
Timestamp |
getInternalTimestamp(ColumnInformation columnInfo,
Calendar userCalendar,
TimeZone timeZone)
Get timestamp from raw text format.
|
String |
getInternalTimeString(ColumnInformation columnInfo)
Get Time in string format from raw text format.
|
ZonedDateTime |
getInternalZonedDateTime(ColumnInformation columnInfo,
Class clazz,
TimeZone timeZone)
Get ZonedDateTime format from raw text format.
|
boolean |
isBinaryEncoded()
Indicate if data is binary encoded.
|
void |
setPosition(int newIndex)
Set length and pos indicator to asked index.
|
extractNanos, getInternalMediumInt, getInternalSmallInt, getInternalTinyInt, getLengthMaxFieldSize, getMaxFieldSize, lastValueWasNull, parseBit, rangeCheck, rangeCheck, resetRow, wasNull, zeroFillingIfNeeded
public TextRowProtocol(int maxFieldSize, Options options)
maxFieldSize
- max field sizeoptions
- connection optionspublic void setPosition(int newIndex)
setPosition
in class RowProtocol
newIndex
- index (0 is first).public String getInternalString(ColumnInformation columnInfo, Calendar cal, TimeZone timeZone) throws SQLException
getInternalString
in class RowProtocol
columnInfo
- column informationcal
- calendartimeZone
- time zoneSQLException
- if column type doesn't permit conversionpublic int getInternalInt(ColumnInformation columnInfo) throws SQLException
getInternalInt
in class RowProtocol
columnInfo
- column informationSQLException
- if column type doesn't permit conversion or not in Integer rangepublic long getInternalLong(ColumnInformation columnInfo) throws SQLException
getInternalLong
in class RowProtocol
columnInfo
- column informationSQLException
- if column type doesn't permit conversion or not in Long range (unsigned)public float getInternalFloat(ColumnInformation columnInfo) throws SQLException
getInternalFloat
in class RowProtocol
columnInfo
- column informationSQLException
- if column type doesn't permit conversion or not in Float rangepublic double getInternalDouble(ColumnInformation columnInfo) throws SQLException
getInternalDouble
in class RowProtocol
columnInfo
- column informationSQLException
- if column type doesn't permit conversion or not in Double range (unsigned)public BigDecimal getInternalBigDecimal(ColumnInformation columnInfo) throws SQLException
getInternalBigDecimal
in class RowProtocol
columnInfo
- column informationSQLException
- if column type doesn't permit conversionpublic Date getInternalDate(ColumnInformation columnInfo, Calendar cal, TimeZone timeZone) throws SQLException
getInternalDate
in class RowProtocol
columnInfo
- column informationcal
- calendartimeZone
- time zoneSQLException
- if column type doesn't permit conversionpublic Time getInternalTime(ColumnInformation columnInfo, Calendar cal, TimeZone timeZone) throws SQLException
getInternalTime
in class RowProtocol
columnInfo
- column informationcal
- calendartimeZone
- time zoneSQLException
- if column type doesn't permit conversionpublic Timestamp getInternalTimestamp(ColumnInformation columnInfo, Calendar userCalendar, TimeZone timeZone) throws SQLException
getInternalTimestamp
in class RowProtocol
columnInfo
- column informationuserCalendar
- calendartimeZone
- time zoneSQLException
- if column type doesn't permit conversionpublic Object getInternalObject(ColumnInformation columnInfo, TimeZone timeZone) throws SQLException
getInternalObject
in class RowProtocol
columnInfo
- column informationtimeZone
- time zoneSQLException
- if column type doesn't permit conversionpublic boolean getInternalBoolean(ColumnInformation columnInfo) throws SQLException
getInternalBoolean
in class RowProtocol
columnInfo
- column informationSQLException
- if column type doesn't permit conversionpublic byte getInternalByte(ColumnInformation columnInfo) throws SQLException
getInternalByte
in class RowProtocol
columnInfo
- column informationSQLException
- if column type doesn't permit conversionpublic short getInternalShort(ColumnInformation columnInfo) throws SQLException
getInternalShort
in class RowProtocol
columnInfo
- column informationSQLException
- if column type doesn't permit conversion or value is not in Short rangepublic String getInternalTimeString(ColumnInformation columnInfo)
getInternalTimeString
in class RowProtocol
columnInfo
- column informationpublic BigInteger getInternalBigInteger(ColumnInformation columnInfo)
getInternalBigInteger
in class RowProtocol
columnInfo
- column informationpublic ZonedDateTime getInternalZonedDateTime(ColumnInformation columnInfo, Class clazz, TimeZone timeZone) throws SQLException
getInternalZonedDateTime
in class RowProtocol
columnInfo
- column informationclazz
- class for loggingtimeZone
- time zoneSQLException
- if column type doesn't permit conversionpublic OffsetTime getInternalOffsetTime(ColumnInformation columnInfo, TimeZone timeZone) throws SQLException
getInternalOffsetTime
in class RowProtocol
columnInfo
- column informationtimeZone
- time zoneSQLException
- if column type doesn't permit conversionpublic LocalTime getInternalLocalTime(ColumnInformation columnInfo, TimeZone timeZone) throws SQLException
getInternalLocalTime
in class RowProtocol
columnInfo
- column informationtimeZone
- time zoneSQLException
- if column type doesn't permit conversionpublic LocalDate getInternalLocalDate(ColumnInformation columnInfo, TimeZone timeZone) throws SQLException
getInternalLocalDate
in class RowProtocol
columnInfo
- column informationtimeZone
- time zoneSQLException
- if column type doesn't permit conversionpublic boolean isBinaryEncoded()
isBinaryEncoded
in class RowProtocol
Copyright © 2020 mariadb.org. All rights reserved.