public class BsonColumn extends BlobColumn
charset, columnLength, dataType, decimals, extTypeFormat, extTypeName| Constructor and Description |
|---|
BsonColumn(BsonColumn prev)
Recreate new column using alias as name.
|
BsonColumn(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)
BSON metadata type decoder
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
decodeBooleanBinary(com.singlestore.jdbc.client.ReadableByteBuf buf,
MutableInt length)
Parse boolean binary encoded value
|
boolean |
decodeBooleanText(com.singlestore.jdbc.client.ReadableByteBuf buf,
MutableInt length)
Return boolean 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
|
BsonColumn |
useAliasAsName() |
decodeByteBinary, decodeByteText, decodeDateBinary, decodeDateText, decodeDoubleBinary, decodeDoubleText, decodeFloatBinary, decodeFloatText, decodeIntBinary, decodeIntText, decodeLongBinary, decodeLongText, decodeShortBinary, decodeShortText, decodeStringBinary, decodeStringText, decodeTimeBinary, decodeTimestampBinary, decodeTimestampText, decodeTimeText, getPrecisionequals, 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 BsonColumn(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 formatpublic BsonColumn(BsonColumn prev)
prev - current columnpublic BsonColumn useAliasAsName()
useAliasAsName in interface com.singlestore.jdbc.client.ColumnDecoderuseAliasAsName in class BlobColumnpublic String defaultClassname(Configuration conf)
com.singlestore.jdbc.client.ColumnDecoderdefaultClassname in interface com.singlestore.jdbc.client.ColumnDecoderdefaultClassname in class BlobColumnconf - configurationpublic int getColumnType(Configuration conf)
com.singlestore.jdbc.client.ColumnDecodergetColumnType in interface com.singlestore.jdbc.client.ColumnDecodergetColumnType in class BlobColumnconf - configurationpublic String getColumnTypeName(Configuration conf)
com.singlestore.jdbc.client.ColumnDecodergetColumnTypeName in interface com.singlestore.jdbc.client.ColumnDecodergetColumnTypeName in class BlobColumnconf - configurationpublic 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 BlobColumnconf - 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 BlobColumnconf - configurationbuf - row bufferlength - data lengthSQLDataException - if any decoding error occurspublic boolean decodeBooleanText(com.singlestore.jdbc.client.ReadableByteBuf buf,
MutableInt length)
throws SQLDataException
com.singlestore.jdbc.client.ColumnDecoderdecodeBooleanText in interface com.singlestore.jdbc.client.ColumnDecoderdecodeBooleanText in class BlobColumnbuf - row bufferlength - data lengthSQLDataException - if any decoding error occurspublic boolean decodeBooleanBinary(com.singlestore.jdbc.client.ReadableByteBuf buf,
MutableInt length)
throws SQLDataException
com.singlestore.jdbc.client.ColumnDecoderdecodeBooleanBinary in interface com.singlestore.jdbc.client.ColumnDecoderdecodeBooleanBinary in class BlobColumnbuf - row bufferlength - data lengthSQLDataException - if any decoding error occursCopyright © 2025 SingleStore. All rights reserved.