public class TextRowProtocol extends RowProtocol
BIT_LAST_FIELD_NOT_NULL, BIT_LAST_FIELD_NULL, BIT_LAST_ZERO_DATE, buf, complexEndPos, 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 |
|---|---|
Array |
getInternalArray(ColumnDefinition columnInfo,
ComplexDataType complexDataType) |
BigDecimal |
getInternalBigDecimal(ColumnDefinition columnInfo)
Get BigDecimal from raw text format.
|
BigInteger |
getInternalBigInteger(ColumnDefinition columnInfo)
Get BigInteger format from raw text format.
|
BINARY_DOUBLE |
getInternalBINARY_DOUBLE() |
BINARY_FLOAT |
getInternalBINARY_FLOAT() |
boolean |
getInternalBoolean(ColumnDefinition columnInfo)
Get boolean from raw text format.
|
byte |
getInternalByte(ColumnDefinition columnInfo)
Get byte from raw text format.
|
ComplexData |
getInternalComplexCursor(ColumnDefinition columnInfo,
ComplexDataType complexDataType) |
Date |
getInternalDate(ColumnDefinition columnInfo,
Calendar cal,
TimeZone timeZone)
Get date from raw text format.
|
double |
getInternalDouble(ColumnDefinition columnInfo)
Get double from raw text format.
|
float |
getInternalFloat(ColumnDefinition columnInfo)
Get float from raw text format.
|
int |
getInternalInt(ColumnDefinition columnInfo)
Get int from raw text format.
|
INTERVALDS |
getInternalINTERVALDS(ColumnDefinition columnInfo) |
INTERVALYM |
getInternalINTERVALYM(ColumnDefinition columnInfo) |
LocalDate |
getInternalLocalDate(ColumnDefinition columnInfo,
TimeZone timeZone)
Get LocalDate format from raw text format.
|
LocalTime |
getInternalLocalTime(ColumnDefinition columnInfo,
TimeZone timeZone)
Get LocalTime format from raw text format.
|
long |
getInternalLong(ColumnDefinition columnInfo)
Get long from raw text format.
|
NUMBER_FLOAT |
getInternalNumber_float(ColumnDefinition columnInfo) |
NUMBER |
getInternalNumber(ColumnDefinition columnInfo) |
Object |
getInternalObject(ColumnDefinition columnInfo,
TimeZone timeZone)
Get Object from raw text format.
|
OffsetTime |
getInternalOffsetTime(ColumnDefinition columnInfo,
TimeZone timeZone)
Get OffsetTime format from raw text format.
|
short |
getInternalShort(ColumnDefinition columnInfo)
Get short from raw text format.
|
String |
getInternalString(ColumnDefinition columnInfo,
Calendar cal,
TimeZone timeZone)
Get String from raw text format.
|
Struct |
getInternalStruct(ColumnDefinition columnInfo,
ComplexDataType complexDataType) |
Time |
getInternalTime(ColumnDefinition columnInfo,
Calendar cal,
TimeZone timeZone)
Get time from raw text format.
|
Timestamp |
getInternalTimestamp(ColumnDefinition columnInfo,
Calendar userCalendar,
TimeZone timeZone)
Get timestamp from raw text format.
|
String |
getInternalTimeString(ColumnDefinition columnInfo)
Get Time in string format from raw text format.
|
ZonedDateTime |
getInternalZonedDateTime(ColumnDefinition 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, getBINARY_DOUBLE, getBINARY_FLOAT, getEncoding, getInternalMediumInt, getInternalSmallInt, getInternalTIMESTAMP, getInternalTIMESTAMPLTZ, getInternalTIMESTAMPTZ, getInternalTinyInt, getINTERVALDS, getINTERVALYM, getLengthMaxFieldSize, getMaxFieldSize, getNUMBER_FLOAT, getProtocol, lastValueWasNull, parseBit, rangeCheck, rangeCheck, resetRow, sendFechRowViaCursor, setProtocol, wasNull, zeroFillingIfNeeded, zgetNUMBERpublic TextRowProtocol(int maxFieldSize,
Options options)
maxFieldSize - max field sizeoptions - connection optionspublic void setPosition(int newIndex)
setPosition in class RowProtocolnewIndex - index (0 is first).public String getInternalString(ColumnDefinition columnInfo, Calendar cal, TimeZone timeZone) throws SQLException
getInternalString in class RowProtocolcolumnInfo - column informationcal - calendartimeZone - time zoneSQLException - if column type doesn't permit conversionpublic int getInternalInt(ColumnDefinition columnInfo) throws SQLException
getInternalInt in class RowProtocolcolumnInfo - column informationSQLException - if column type doesn't permit conversion or not in Integer rangepublic long getInternalLong(ColumnDefinition columnInfo) throws SQLException
getInternalLong in class RowProtocolcolumnInfo - column informationSQLException - if column type doesn't permit conversion or not in Long range (unsigned)public float getInternalFloat(ColumnDefinition columnInfo) throws SQLException
getInternalFloat in class RowProtocolcolumnInfo - column informationSQLException - if column type doesn't permit conversion or not in Float rangepublic double getInternalDouble(ColumnDefinition columnInfo) throws SQLException
getInternalDouble in class RowProtocolcolumnInfo - column informationSQLException - if column type doesn't permit conversion or not in Double range (unsigned)public BigDecimal getInternalBigDecimal(ColumnDefinition columnInfo)
getInternalBigDecimal in class RowProtocolcolumnInfo - column informationpublic Date getInternalDate(ColumnDefinition columnInfo, Calendar cal, TimeZone timeZone) throws SQLException
getInternalDate in class RowProtocolcolumnInfo - column informationcal - calendartimeZone - time zoneSQLException - if column type doesn't permit conversionpublic Time getInternalTime(ColumnDefinition columnInfo, Calendar cal, TimeZone timeZone) throws SQLException
getInternalTime in class RowProtocolcolumnInfo - column informationcal - calendartimeZone - time zoneSQLException - if column type doesn't permit conversionpublic Timestamp getInternalTimestamp(ColumnDefinition columnInfo, Calendar userCalendar, TimeZone timeZone) throws SQLException
getInternalTimestamp in class RowProtocolcolumnInfo - column informationuserCalendar - calendartimeZone - time zoneSQLException - if column type doesn't permit conversionpublic Array getInternalArray(ColumnDefinition columnInfo, ComplexDataType complexDataType) throws SQLException
getInternalArray in class RowProtocolSQLExceptionpublic Struct getInternalStruct(ColumnDefinition columnInfo, ComplexDataType complexDataType) throws SQLException
getInternalStruct in class RowProtocolSQLExceptionpublic ComplexData getInternalComplexCursor(ColumnDefinition columnInfo, ComplexDataType complexDataType) throws SQLException
getInternalComplexCursor in class RowProtocolSQLExceptionpublic Object getInternalObject(ColumnDefinition columnInfo, TimeZone timeZone) throws SQLException
getInternalObject in class RowProtocolcolumnInfo - column informationtimeZone - time zoneSQLException - if column type doesn't permit conversionpublic boolean getInternalBoolean(ColumnDefinition columnInfo) throws SQLException
getInternalBoolean in class RowProtocolcolumnInfo - column informationSQLExceptionpublic byte getInternalByte(ColumnDefinition columnInfo) throws SQLException
getInternalByte in class RowProtocolcolumnInfo - column informationSQLException - if column type doesn't permit conversionpublic short getInternalShort(ColumnDefinition columnInfo) throws SQLException
getInternalShort in class RowProtocolcolumnInfo - column informationSQLException - if column type doesn't permit conversion or value is not in Short rangepublic String getInternalTimeString(ColumnDefinition columnInfo)
getInternalTimeString in class RowProtocolcolumnInfo - column informationpublic BigInteger getInternalBigInteger(ColumnDefinition columnInfo)
getInternalBigInteger in class RowProtocolcolumnInfo - column informationpublic ZonedDateTime getInternalZonedDateTime(ColumnDefinition columnInfo, Class clazz, TimeZone timeZone) throws SQLException
getInternalZonedDateTime in class RowProtocolcolumnInfo - column informationclazz - class for loggingtimeZone - time zoneSQLException - if column type doesn't permit conversionpublic OffsetTime getInternalOffsetTime(ColumnDefinition columnInfo, TimeZone timeZone) throws SQLException
getInternalOffsetTime in class RowProtocolcolumnInfo - column informationtimeZone - time zoneSQLException - if column type doesn't permit conversionpublic LocalTime getInternalLocalTime(ColumnDefinition columnInfo, TimeZone timeZone) throws SQLException
getInternalLocalTime in class RowProtocolcolumnInfo - column informationtimeZone - time zoneSQLException - if column type doesn't permit conversionpublic LocalDate getInternalLocalDate(ColumnDefinition columnInfo, TimeZone timeZone) throws SQLException
getInternalLocalDate in class RowProtocolcolumnInfo - column informationtimeZone - time zoneSQLException - if column type doesn't permit conversionpublic boolean isBinaryEncoded()
isBinaryEncoded in class RowProtocolpublic NUMBER getInternalNumber(ColumnDefinition columnInfo)
public NUMBER_FLOAT getInternalNumber_float(ColumnDefinition columnInfo)
public BINARY_DOUBLE getInternalBINARY_DOUBLE()
public BINARY_FLOAT getInternalBINARY_FLOAT()
public INTERVALDS getInternalINTERVALDS(ColumnDefinition columnInfo) throws SQLException
getInternalINTERVALDS in class RowProtocolSQLExceptionpublic INTERVALYM getInternalINTERVALYM(ColumnDefinition columnInfo) throws SQLException
getInternalINTERVALYM in class RowProtocolSQLExceptionCopyright © 2022 oceanbase.com. All rights reserved.