接口 MysqlxResultset.ColumnMetaDataOrBuilder
-
- 所有超级接口:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- 封闭类:
- MysqlxResultset
public static interface MysqlxResultset.ColumnMetaDataOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 com.google.protobuf.ByteStringgetCatalog()catalog the schema originates from @note As there is currently no support for catalogs in MySQL, don't expect this field to be set.longgetCollation()optional uint64 collation = 8;intgetContentType()a hint about the higher-level encoding of a BYTES field | Type | Value | Description | |--------|--------|-------------------------| | BYTES | 0x0001 | GEOMETRY (WKB encoding) | | BYTES | 0x0002 | JSON (text encoding) | | BYTES | 0x0003 | XML (text encoding) | @note This list isn't comprehensive.intgetFlags()``.type`` specific flags | Type | Value | Description | |---------|--------|--------------| | UINT | 0x0001 | zerofill | | DOUBLE | 0x0001 | unsigned | | FLOAT | 0x0001 | unsigned | | DECIMAL | 0x0001 | unsigned | | BYTES | 0x0001 | rightpad | | Value | Description | |--------|-----------------| | 0x0010 | NOT\_NULL | | 0x0020 | PRIMARY\_KEY | | 0x0040 | UNIQUE\_KEY | | 0x0080 | MULTIPLE\_KEY | | 0x0100 | AUTO\_INCREMENT | default: 0intgetFractionalDigits()displayed factional decimal digits for floating point and fixed point numbersintgetLength()maximum count of displayable characters of .typecom.google.protobuf.ByteStringgetName()name of the columncom.google.protobuf.ByteStringgetOriginalName()name of the column before an alias was appliedcom.google.protobuf.ByteStringgetOriginalTable()name of the table the column originates from before an alias was appliedcom.google.protobuf.ByteStringgetSchema()schema the column originates fromcom.google.protobuf.ByteStringgetTable()name of the table the column originates fromMysqlxResultset.ColumnMetaData.FieldTypegetType()datatype of the field in a rowbooleanhasCatalog()catalog the schema originates from @note As there is currently no support for catalogs in MySQL, don't expect this field to be set.booleanhasCollation()optional uint64 collation = 8;booleanhasContentType()a hint about the higher-level encoding of a BYTES field | Type | Value | Description | |--------|--------|-------------------------| | BYTES | 0x0001 | GEOMETRY (WKB encoding) | | BYTES | 0x0002 | JSON (text encoding) | | BYTES | 0x0003 | XML (text encoding) | @note This list isn't comprehensive.booleanhasFlags()``.type`` specific flags | Type | Value | Description | |---------|--------|--------------| | UINT | 0x0001 | zerofill | | DOUBLE | 0x0001 | unsigned | | FLOAT | 0x0001 | unsigned | | DECIMAL | 0x0001 | unsigned | | BYTES | 0x0001 | rightpad | | Value | Description | |--------|-----------------| | 0x0010 | NOT\_NULL | | 0x0020 | PRIMARY\_KEY | | 0x0040 | UNIQUE\_KEY | | 0x0080 | MULTIPLE\_KEY | | 0x0100 | AUTO\_INCREMENT | default: 0booleanhasFractionalDigits()displayed factional decimal digits for floating point and fixed point numbersbooleanhasLength()maximum count of displayable characters of .typebooleanhasName()name of the columnbooleanhasOriginalName()name of the column before an alias was appliedbooleanhasOriginalTable()name of the table the column originates from before an alias was appliedbooleanhasSchema()schema the column originates frombooleanhasTable()name of the table the column originates frombooleanhasType()datatype of the field in a row
-
-
-
方法详细资料
-
hasType
boolean hasType()
datatype of the field in a row
required .Mysqlx.Resultset.ColumnMetaData.FieldType type = 1;- 返回:
- Whether the type field is set.
-
getType
MysqlxResultset.ColumnMetaData.FieldType getType()
datatype of the field in a row
required .Mysqlx.Resultset.ColumnMetaData.FieldType type = 1;- 返回:
- The type.
-
hasName
boolean hasName()
name of the column
optional bytes name = 2;- 返回:
- Whether the name field is set.
-
getName
com.google.protobuf.ByteString getName()
name of the column
optional bytes name = 2;- 返回:
- The name.
-
hasOriginalName
boolean hasOriginalName()
name of the column before an alias was applied
optional bytes original_name = 3;- 返回:
- Whether the originalName field is set.
-
getOriginalName
com.google.protobuf.ByteString getOriginalName()
name of the column before an alias was applied
optional bytes original_name = 3;- 返回:
- The originalName.
-
hasTable
boolean hasTable()
name of the table the column originates from
optional bytes table = 4;- 返回:
- Whether the table field is set.
-
getTable
com.google.protobuf.ByteString getTable()
name of the table the column originates from
optional bytes table = 4;- 返回:
- The table.
-
hasOriginalTable
boolean hasOriginalTable()
name of the table the column originates from before an alias was applied
optional bytes original_table = 5;- 返回:
- Whether the originalTable field is set.
-
getOriginalTable
com.google.protobuf.ByteString getOriginalTable()
name of the table the column originates from before an alias was applied
optional bytes original_table = 5;- 返回:
- The originalTable.
-
hasSchema
boolean hasSchema()
schema the column originates from
optional bytes schema = 6;- 返回:
- Whether the schema field is set.
-
getSchema
com.google.protobuf.ByteString getSchema()
schema the column originates from
optional bytes schema = 6;- 返回:
- The schema.
-
hasCatalog
boolean hasCatalog()
catalog the schema originates from @note As there is currently no support for catalogs in MySQL, don't expect this field to be set. In the MySQL C/S protocol the field had the value ``def`` all the time
optional bytes catalog = 7;- 返回:
- Whether the catalog field is set.
-
getCatalog
com.google.protobuf.ByteString getCatalog()
catalog the schema originates from @note As there is currently no support for catalogs in MySQL, don't expect this field to be set. In the MySQL C/S protocol the field had the value ``def`` all the time
optional bytes catalog = 7;- 返回:
- The catalog.
-
hasCollation
boolean hasCollation()
optional uint64 collation = 8;- 返回:
- Whether the collation field is set.
-
getCollation
long getCollation()
optional uint64 collation = 8;- 返回:
- The collation.
-
hasFractionalDigits
boolean hasFractionalDigits()
displayed factional decimal digits for floating point and fixed point numbers
optional uint32 fractional_digits = 9;- 返回:
- Whether the fractionalDigits field is set.
-
getFractionalDigits
int getFractionalDigits()
displayed factional decimal digits for floating point and fixed point numbers
optional uint32 fractional_digits = 9;- 返回:
- The fractionalDigits.
-
hasLength
boolean hasLength()
maximum count of displayable characters of .type
optional uint32 length = 10;- 返回:
- Whether the length field is set.
-
getLength
int getLength()
maximum count of displayable characters of .type
optional uint32 length = 10;- 返回:
- The length.
-
hasFlags
boolean hasFlags()
``.type`` specific flags | Type | Value | Description | |---------|--------|--------------| | UINT | 0x0001 | zerofill | | DOUBLE | 0x0001 | unsigned | | FLOAT | 0x0001 | unsigned | | DECIMAL | 0x0001 | unsigned | | BYTES | 0x0001 | rightpad | | Value | Description | |--------|-----------------| | 0x0010 | NOT\_NULL | | 0x0020 | PRIMARY\_KEY | | 0x0040 | UNIQUE\_KEY | | 0x0080 | MULTIPLE\_KEY | | 0x0100 | AUTO\_INCREMENT | default: 0
optional uint32 flags = 11;- 返回:
- Whether the flags field is set.
-
getFlags
int getFlags()
``.type`` specific flags | Type | Value | Description | |---------|--------|--------------| | UINT | 0x0001 | zerofill | | DOUBLE | 0x0001 | unsigned | | FLOAT | 0x0001 | unsigned | | DECIMAL | 0x0001 | unsigned | | BYTES | 0x0001 | rightpad | | Value | Description | |--------|-----------------| | 0x0010 | NOT\_NULL | | 0x0020 | PRIMARY\_KEY | | 0x0040 | UNIQUE\_KEY | | 0x0080 | MULTIPLE\_KEY | | 0x0100 | AUTO\_INCREMENT | default: 0
optional uint32 flags = 11;- 返回:
- The flags.
-
hasContentType
boolean hasContentType()
a hint about the higher-level encoding of a BYTES field | Type | Value | Description | |--------|--------|-------------------------| | BYTES | 0x0001 | GEOMETRY (WKB encoding) | | BYTES | 0x0002 | JSON (text encoding) | | BYTES | 0x0003 | XML (text encoding) | @note This list isn't comprehensive. As a guideline: the field's value is expected to pass a validator check on client and server if this field is set. If the server adds more internal data types that rely on BLOB storage like image manipulation, seeking into complex types in BLOBs, and more types will be added
optional uint32 content_type = 12;- 返回:
- Whether the contentType field is set.
-
getContentType
int getContentType()
a hint about the higher-level encoding of a BYTES field | Type | Value | Description | |--------|--------|-------------------------| | BYTES | 0x0001 | GEOMETRY (WKB encoding) | | BYTES | 0x0002 | JSON (text encoding) | | BYTES | 0x0003 | XML (text encoding) | @note This list isn't comprehensive. As a guideline: the field's value is expected to pass a validator check on client and server if this field is set. If the server adds more internal data types that rely on BLOB storage like image manipulation, seeking into complex types in BLOBs, and more types will be added
optional uint32 content_type = 12;- 返回:
- The contentType.
-
-