public class BinaryRowProtocol 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| 构造器和说明 |
|---|
BinaryRowProtocol(ColumnDefinition[] columnDefinition,
int columnInformationLength,
int maxFieldSize,
Options options)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
ComplexData |
getComplexStruct(Buffer packet,
ComplexDataType type,
Connection connection) |
Array |
getInternalArray(ColumnDefinition columnInf,
ComplexDataType complexDataType,
Connection connection) |
BigDecimal |
getInternalBigDecimal(ColumnDefinition columnInfo)
Get BigDecimal from raw binary format.
|
BigInteger |
getInternalBigInteger(ColumnDefinition columnInfo)
Get BigInteger from raw binary format.
|
boolean |
getInternalBoolean(ColumnDefinition columnInfo)
Get boolean from raw binary format.
|
byte |
getInternalByte(ColumnDefinition columnInfo)
Get byte from raw binary format.
|
ComplexData |
getInternalComplexCursor(ColumnDefinition columnInfo,
ComplexDataType complexDataType,
Connection connection) |
Date |
getInternalDate(ColumnDefinition columnInfo,
Calendar cal,
TimeZone timeZone)
Get date from raw binary format.
|
double |
getInternalDouble(ColumnDefinition columnInfo)
Get double from raw binary format.
|
float |
getInternalFloat(ColumnDefinition columnInfo)
Get float from raw binary format.
|
int |
getInternalInt(ColumnDefinition columnInfo)
Get int from raw binary format.
|
INTERVALDS |
getInternalINTERVALDS(ColumnDefinition columnInfo) |
INTERVALYM |
getInternalINTERVALYM(ColumnDefinition columnInfo) |
LocalDate |
getInternalLocalDate(ColumnDefinition columnInfo,
TimeZone timeZone)
Get LocalDate from raw binary format.
|
LocalTime |
getInternalLocalTime(ColumnDefinition columnInfo,
TimeZone timeZone)
Get LocalTime from raw binary format.
|
long |
getInternalLong(ColumnDefinition columnInfo)
Get long from raw binary format.
|
Object |
getInternalObject(ColumnDefinition columnInfo,
TimeZone timeZone)
Get Object from raw binary format.
|
OffsetDateTime |
getInternalOffsetDateTime(ColumnDefinition columnInfo,
TimeZone timeZone) |
OffsetTime |
getInternalOffsetTime(ColumnDefinition columnInfo,
TimeZone timeZone)
Get OffsetTime from raw binary format.
|
short |
getInternalShort(ColumnDefinition columnInfo)
Get short from raw binary format.
|
String |
getInternalString(ColumnDefinition columnInfo,
Calendar cal,
TimeZone timeZone)
Get string from raw binary format.
|
Struct |
getInternalStruct(ColumnDefinition columnInfo,
ComplexDataType complexDataType,
Connection connection)
Get Struct from raw binary format.
|
Time |
getInternalTime(ColumnDefinition columnInfo,
Calendar cal,
TimeZone timeZone)
Get time from raw binary format.
|
Timestamp |
getInternalTimestamp(ColumnDefinition columnInfo,
Calendar userCalendar,
TimeZone timeZone)
Get timestamp from raw binary format.
|
String |
getInternalTimeString(ColumnDefinition columnInfo)
Get Time in string format from raw binary format.
|
ZonedDateTime |
getInternalZonedDateTime(ColumnDefinition columnInfo,
Class clazz,
TimeZone timeZone)
Get ZonedDateTime from raw binary format.
|
boolean |
isBinaryEncoded()
Indicate if data is binary encoded.
|
void |
setPosition(int newIndex,
JDBC4ResultSet resultSet)
Set length and pos indicator to asked index.
|
buildTIMETAMP, convertToZeroWithEmptyCheck, extractNanos, getBINARY_DOUBLE, getBINARY_FLOAT, getCalendarInstance, getCalendarInstanceWithTimezone, getDateFromString, getEncoding, getInternalMediumInt, getInternalSmallInt, getInternalTIMESTAMP, getInternalTIMESTAMPLTZ, getInternalTIMESTAMPTZ, getInternalTinyInt, getINTERVALDS, getINTERVALYM, getLengthMaxFieldSize, getMaxFieldSize, getNUMBER_FLOAT, getProtocol, getTimeFromString, getTimestampFromString, getTimestampPart, lastValueWasNull, parseBit, rangeCheck, rangeCheck, rangeCheck, resetRow, setProtocol, wasNull, zeroFillingIfNeeded, zgetNUMBERpublic BinaryRowProtocol(ColumnDefinition[] columnDefinition, int columnInformationLength, int maxFieldSize, Options options)
columnDefinition - column information.columnInformationLength - number of columnsmaxFieldSize - max field sizeoptions - connection optionspublic void setPosition(int newIndex,
JDBC4ResultSet resultSet)
throws SQLException
setPosition 在类中 RowProtocolnewIndex - index (0 is first).SQLExceptionpublic String getInternalString(ColumnDefinition columnInfo, Calendar cal, TimeZone timeZone) throws SQLException
getInternalString 在类中 RowProtocolcolumnInfo - column informationcal - calendartimeZone - time zoneSQLException - if conversion failedpublic int getInternalInt(ColumnDefinition columnInfo) throws SQLException
getInternalInt 在类中 RowProtocolcolumnInfo - column informationSQLException - if column is not numeric or is not in Integer bounds.public long getInternalLong(ColumnDefinition columnInfo) throws SQLException
getInternalLong 在类中 RowProtocolcolumnInfo - column informationSQLException - if column is not numeric or is not in Long bounds (for big unsigned
values)public float getInternalFloat(ColumnDefinition columnInfo) throws SQLException
getInternalFloat 在类中 RowProtocolcolumnInfo - column informationSQLException - if column is not numeric or is not in Float bounds.public double getInternalDouble(ColumnDefinition columnInfo) throws SQLException
getInternalDouble 在类中 RowProtocolcolumnInfo - column informationSQLException - if column is not numeric or is not in Double bounds (unsigned columns).public BigDecimal getInternalBigDecimal(ColumnDefinition columnInfo) throws SQLException
getInternalBigDecimal 在类中 RowProtocolcolumnInfo - column informationSQLException - if column is not numericpublic Date getInternalDate(ColumnDefinition columnInfo, Calendar cal, TimeZone timeZone) throws SQLException
getInternalDate 在类中 RowProtocolcolumnInfo - column informationcal - calendartimeZone - time zoneSQLException - if column is not compatible to Datepublic Time getInternalTime(ColumnDefinition columnInfo, Calendar cal, TimeZone timeZone) throws SQLException
getInternalTime 在类中 RowProtocolcolumnInfo - column informationcal - calendartimeZone - time zoneSQLException - if column cannot be converted to Timepublic Timestamp getInternalTimestamp(ColumnDefinition columnInfo, Calendar userCalendar, TimeZone timeZone) throws SQLException
getInternalTimestamp 在类中 RowProtocolcolumnInfo - column informationuserCalendar - user calendartimeZone - time zoneSQLException - if column type is not compatiblepublic Object getInternalObject(ColumnDefinition columnInfo, TimeZone timeZone) throws SQLException
getInternalObject 在类中 RowProtocolcolumnInfo - column informationtimeZone - time zoneSQLException - if column type is not compatiblepublic boolean getInternalBoolean(ColumnDefinition columnInfo) throws SQLException
getInternalBoolean 在类中 RowProtocolcolumnInfo - column informationSQLException - if column type doesn't permit conversionpublic byte getInternalByte(ColumnDefinition columnInfo) throws SQLException
getInternalByte 在类中 RowProtocolcolumnInfo - column informationSQLException - if column type doesn't permit conversionpublic short getInternalShort(ColumnDefinition columnInfo) throws SQLException
getInternalShort 在类中 RowProtocolcolumnInfo - column informationSQLException - if column type doesn't permit conversionpublic String getInternalTimeString(ColumnDefinition columnInfo)
getInternalTimeString 在类中 RowProtocolcolumnInfo - column informationpublic BigInteger getInternalBigInteger(ColumnDefinition columnInfo) throws SQLException
getInternalBigInteger 在类中 RowProtocolcolumnInfo - column informationSQLException - if column type doesn't permit conversion or value is not in BigInteger
rangepublic ZonedDateTime getInternalZonedDateTime(ColumnDefinition columnInfo, Class clazz, TimeZone timeZone) throws SQLException
getInternalZonedDateTime 在类中 RowProtocolcolumnInfo - column informationclazz - asked classtimeZone - time zoneSQLException - if column type doesn't permit conversionpublic OffsetTime getInternalOffsetTime(ColumnDefinition columnInfo, TimeZone timeZone) throws SQLException
getInternalOffsetTime 在类中 RowProtocolcolumnInfo - column informationtimeZone - time zoneSQLException - if column type doesn't permit conversionpublic OffsetDateTime getInternalOffsetDateTime(ColumnDefinition columnInfo, TimeZone timeZone) throws SQLException
getInternalOffsetDateTime 在类中 RowProtocolSQLExceptionpublic LocalTime getInternalLocalTime(ColumnDefinition columnInfo, TimeZone timeZone) throws SQLException
getInternalLocalTime 在类中 RowProtocolcolumnInfo - column informationtimeZone - time zoneSQLException - if column type doesn't permit conversionpublic LocalDate getInternalLocalDate(ColumnDefinition columnInfo, TimeZone timeZone) throws SQLException
getInternalLocalDate 在类中 RowProtocolcolumnInfo - column informationtimeZone - time zoneSQLException - if column type doesn't permit conversionpublic ComplexData getComplexStruct(Buffer packet, ComplexDataType type, Connection connection) throws SQLException
SQLExceptionpublic Array getInternalArray(ColumnDefinition columnInf, ComplexDataType complexDataType, Connection connection) throws SQLException
getInternalArray 在类中 RowProtocolcolumnInf - complexDataType - SQLExceptionpublic Struct getInternalStruct(ColumnDefinition columnInfo, ComplexDataType complexDataType, Connection connection) throws SQLException
getInternalStruct 在类中 RowProtocolcolumnInfo - column informationSQLException - exceptionpublic ComplexData getInternalComplexCursor(ColumnDefinition columnInfo, ComplexDataType complexDataType, Connection connection) throws SQLException
getInternalComplexCursor 在类中 RowProtocolSQLExceptionpublic INTERVALDS getInternalINTERVALDS(ColumnDefinition columnInfo) throws SQLException
getInternalINTERVALDS 在类中 RowProtocolSQLExceptionpublic INTERVALYM getInternalINTERVALYM(ColumnDefinition columnInfo) throws SQLException
getInternalINTERVALYM 在类中 RowProtocolSQLExceptionpublic boolean isBinaryEncoded()
isBinaryEncoded 在类中 RowProtocolCopyright © 2024 oceanbase.com. All rights reserved.