public class YearColumn extends UnsignedSmallIntColumn
charset, columnLength, dataType, decimals, extTypeFormat, extTypeName| Modifier | Constructor and Description |
|---|---|
|
YearColumn(com.singlestore.jdbc.client.ReadableByteBuf buf,
int charset,
long length,
com.singlestore.jdbc.client.DataType dataType,
byte decimals,
int flags,
int[] stringPos,
String extTypeName,
String extTypeFormat)
YEAR metadata type decoder
|
protected |
YearColumn(YearColumn prev)
Recreate new column using alias as name.
|
| Modifier and Type | Method and Description |
|---|---|
Date |
decodeDateBinary(com.singlestore.jdbc.client.ReadableByteBuf buf,
MutableInt length,
Calendar cal)
Return date binary encoded value
|
Date |
decodeDateText(com.singlestore.jdbc.client.ReadableByteBuf buf,
MutableInt length,
Calendar cal)
Return date text encoded value
|
Timestamp |
decodeTimestampBinary(com.singlestore.jdbc.client.ReadableByteBuf buf,
MutableInt length,
Calendar calParam)
Return timestamp binary encoded value
|
Timestamp |
decodeTimestampText(com.singlestore.jdbc.client.ReadableByteBuf buf,
MutableInt length,
Calendar calParam)
Return timestamp text encoded value
|
String |
defaultClassname(Configuration conf)
Returns default class name depending on server column datatype
|
int |
getColumnType(Configuration conf)
Returns default java.sql.Types depending on server column datatype
|
String |
getColumnTypeName(Configuration conf)
Returns server column datatype
|
Object |
getDefaultBinary(Configuration conf,
com.singlestore.jdbc.client.ReadableByteBuf buf,
MutableInt length)
Return default Object binary encoded
|
Object |
getDefaultText(Configuration conf,
com.singlestore.jdbc.client.ReadableByteBuf buf,
MutableInt length)
Return default Object text encoded
|
int |
getPrecision()
Return decimal precision.
|
YearColumn |
useAliasAsName() |
decodeBooleanBinary, decodeBooleanText, decodeByteBinary, decodeByteText, decodeDoubleBinary, decodeDoubleText, decodeFloatBinary, decodeFloatText, decodeIntBinary, decodeIntText, decodeLongBinary, decodeLongText, decodeShortBinary, decodeShortText, decodeStringBinary, decodeStringText, decodeTimeBinary, decodeTimeTextequals, getCatalog, getColumnAlias, getColumnLength, getColumnName, getDecimals, getDisplaySize, getExtTypeFormat, getExtTypeName, getFlags, getSchema, getTable, getTableAlias, getType, hasDefault, hashCode, isAutoIncrement, isBinary, isPrimaryKey, isSignedclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcreate, decode, decodeStdgetCatalog, getColumnAlias, getColumnLength, getColumnName, getDecimals, getDisplaySize, getExtTypeFormat, getExtTypeName, getFlags, getSchema, getTable, getTableAlias, getType, hasDefault, isAutoIncrement, isBinary, isPrimaryKey, isSignedpublic YearColumn(com.singlestore.jdbc.client.ReadableByteBuf buf,
int charset,
long length,
com.singlestore.jdbc.client.DataType dataType,
byte decimals,
int flags,
int[] stringPos,
String extTypeName,
String extTypeFormat)
buf - buffercharset - charsetlength - maximum data lengthdataType - data typedecimals - decimal lengthflags - flagsstringPos - string offset position in bufferextTypeName - extended type nameextTypeFormat - extended type formatprotected YearColumn(YearColumn prev)
prev - current columnpublic YearColumn useAliasAsName()
useAliasAsName in interface com.singlestore.jdbc.client.ColumnDecoderuseAliasAsName in class UnsignedSmallIntColumnpublic String defaultClassname(Configuration conf)
com.singlestore.jdbc.client.ColumnDecoderdefaultClassname in interface com.singlestore.jdbc.client.ColumnDecoderdefaultClassname in class UnsignedSmallIntColumnconf - configurationpublic int getColumnType(Configuration conf)
com.singlestore.jdbc.client.ColumnDecodergetColumnType in interface com.singlestore.jdbc.client.ColumnDecodergetColumnType in class UnsignedSmallIntColumnconf - configurationpublic String getColumnTypeName(Configuration conf)
com.singlestore.jdbc.client.ColumnDecodergetColumnTypeName in interface com.singlestore.jdbc.client.ColumnDecodergetColumnTypeName in class UnsignedSmallIntColumnconf - configurationpublic int getPrecision()
com.singlestore.jdbc.client.ColumnDecodergetPrecision in interface com.singlestore.jdbc.client.ColumnDecodergetPrecision in class UnsignedSmallIntColumnpublic Object getDefaultText(Configuration conf, com.singlestore.jdbc.client.ReadableByteBuf buf, MutableInt length) throws SQLDataException
com.singlestore.jdbc.client.ColumnDecodergetDefaultText in interface com.singlestore.jdbc.client.ColumnDecodergetDefaultText in class UnsignedSmallIntColumnconf - configurationbuf - row bufferlength - data lengthSQLDataException - if any decoding error occurspublic Object getDefaultBinary(Configuration conf, com.singlestore.jdbc.client.ReadableByteBuf buf, MutableInt length) throws SQLDataException
com.singlestore.jdbc.client.ColumnDecodergetDefaultBinary in interface com.singlestore.jdbc.client.ColumnDecodergetDefaultBinary in class UnsignedSmallIntColumnconf - configurationbuf - row bufferlength - data lengthSQLDataException - if any decoding error occurspublic Date decodeDateText(com.singlestore.jdbc.client.ReadableByteBuf buf, MutableInt length, Calendar cal) throws SQLDataException
com.singlestore.jdbc.client.ColumnDecoderdecodeDateText in interface com.singlestore.jdbc.client.ColumnDecoderdecodeDateText in class UnsignedSmallIntColumnbuf - row bufferlength - data lengthcal - calendarSQLDataException - if any decoding error occurspublic Date decodeDateBinary(com.singlestore.jdbc.client.ReadableByteBuf buf, MutableInt length, Calendar cal) throws SQLDataException
com.singlestore.jdbc.client.ColumnDecoderdecodeDateBinary in interface com.singlestore.jdbc.client.ColumnDecoderdecodeDateBinary in class UnsignedSmallIntColumnbuf - row bufferlength - data lengthcal - calendarSQLDataException - if any decoding error occurspublic Timestamp decodeTimestampText(com.singlestore.jdbc.client.ReadableByteBuf buf, MutableInt length, Calendar calParam) throws SQLDataException
com.singlestore.jdbc.client.ColumnDecoderdecodeTimestampText in interface com.singlestore.jdbc.client.ColumnDecoderdecodeTimestampText in class UnsignedSmallIntColumnbuf - row bufferlength - data lengthcalParam - calendarSQLDataException - if any decoding error occurspublic Timestamp decodeTimestampBinary(com.singlestore.jdbc.client.ReadableByteBuf buf, MutableInt length, Calendar calParam) throws SQLDataException
com.singlestore.jdbc.client.ColumnDecoderdecodeTimestampBinary in interface com.singlestore.jdbc.client.ColumnDecoderdecodeTimestampBinary in class UnsignedSmallIntColumnbuf - row bufferlength - data lengthcalParam - calendarSQLDataException - if any decoding error occursCopyright © 2025 SingleStore. All rights reserved.