public interface TypeInformation
TYPE_INFO ruleCollation,
SqlServerType,
TypeInformation.Updatability| Modifier and Type | Interface and Description |
|---|---|
static class |
TypeInformation.Builder
Builder for
TypeInformation. |
static class |
TypeInformation.Updatability
Enumeration of updatability constants.
|
| Modifier and Type | Method and Description |
|---|---|
static TypeInformation.Builder |
builder()
Creates a
TypeInformation.Builder for TypeInformation. |
static boolean |
canDecode(io.netty.buffer.ByteBuf buffer,
boolean readFlags)
Check whether the
ByteBuf contains sufficient readable bytes to decode the TypeInformation. |
static TypeInformation |
decode(io.netty.buffer.ByteBuf buffer,
boolean readFlags)
Decode
TypeInformation from the ByteBuf. |
Charset |
getCharset()
Returns the
Charset. |
Collation |
getCollation()
Returns the
Collation. |
int |
getDisplaySize()
Returns the display size.
|
LengthStrategy |
getLengthStrategy()
Returns the length
strategy. |
int |
getMaxLength()
Returns the maximal length.
|
int |
getPrecision()
Returns the precision.
|
int |
getScale()
Returns the scale.
|
SqlServerType |
getServerType()
Returns the
SqlServerType base type. |
String |
getServerTypeName()
Returns the server type name.
|
String |
getUdtTypeName()
Returns the user type name.
|
TypeInformation.Updatability |
getUpdatability()
Returns the type
TypeInformation.Updatability. |
int |
getUserType()
Returns the user type.
|
boolean |
isCaseSensitive()
Returns whether the type is case-sensitive.
|
boolean |
isEncrypted()
Returns whether the type is encrypted.
|
boolean |
isIdentity()
Returns whether the type is an identity type.
|
boolean |
isNullable()
Returns whether the type is nullable.
|
boolean |
isSparseColumnSet() |
static TypeInformation decode(io.netty.buffer.ByteBuf buffer, boolean readFlags)
TypeInformation from the ByteBuf.buffer - the data buffer.readFlags - true to decode flags (typically used when not using encryption).TypeInformation.static boolean canDecode(io.netty.buffer.ByteBuf buffer,
boolean readFlags)
ByteBuf contains sufficient readable bytes to decode the TypeInformation.buffer - the data buffer.readFlags - true to parse type flags.true if the data buffer contains sufficient readable bytes to decode the TypeInformation.int getMaxLength()
LengthStrategy getLengthStrategy()
strategy.strategy.int getPrecision()
int getDisplaySize()
int getScale()
SqlServerType getServerType()
SqlServerType base type.SqlServerType base typeint getUserType()
@Nullable String getUdtTypeName()
null if this type information is not related to a user type.@Nullable Collation getCollation()
Collation. Can be null if this type information has no collation details.Collation.@Nullable Charset getCharset()
Charset. Can be null if this type information has no collation details.Charset.getCollation()String getServerTypeName()
boolean isNullable()
true if the type is nullable.boolean isCaseSensitive()
true if the type is case-sensitive.boolean isSparseColumnSet()
boolean isEncrypted()
true if the type is encrypted.TypeInformation.Updatability getUpdatability()
TypeInformation.Updatability.TypeInformation.Updatability.boolean isIdentity()
true if the type is an identity type.static TypeInformation.Builder builder()
TypeInformation.Builder for TypeInformation.TypeInformation.Builder to build TypeInformation.Copyright © 2023. All rights reserved.