| 1 |
.. -*- rst -*- |
| 2 |
|
| 3 |
.. groonga-command |
| 4 |
.. database: commands_object_inspect |
| 5 |
|
| 6 |
``object_inspect`` |
| 7 |
================== |
| 8 |
|
| 9 |
Summary |
| 10 |
------- |
| 11 |
|
| 12 |
.. versionadded:: 6.0.0 |
| 13 |
|
| 14 |
``object_inspect`` inspects an object. You can confirm details of an |
| 15 |
object. |
| 16 |
|
| 17 |
For example: |
| 18 |
|
| 19 |
* If the object is a table, you can confirm the number of records in |
| 20 |
the table. |
| 21 |
|
| 22 |
* If the object is a column, you can confirm the type of value of |
| 23 |
the column. |
| 24 |
|
| 25 |
Syntax |
| 26 |
------ |
| 27 |
|
| 28 |
This command takes only one optional parameter:: |
| 29 |
|
| 30 |
object_inspect [name=null] |
| 31 |
|
| 32 |
Usage |
| 33 |
----- |
| 34 |
|
| 35 |
You can inspect an object in the database specified by ``name``: |
| 36 |
|
| 37 |
.. groonga-command |
| 38 |
.. include:: ../../example/reference/commands/object_inspect/usage-name.log |
| 39 |
.. table_create Users TABLE_HASH_KEY ShortText |
| 40 |
.. load --table Users |
| 41 |
.. [ |
| 42 |
.. {"_key": "Alice"} |
| 43 |
.. ] |
| 44 |
.. object_inspect Users |
| 45 |
|
| 46 |
The ``object_inspect Users`` returns the following information: |
| 47 |
|
| 48 |
* The name of the table: ``"name": Users`` |
| 49 |
|
| 50 |
* The total used key size: ``"key": {"total_size": 5}`` |
| 51 |
(``"Alice"`` is 5 byte data) |
| 52 |
|
| 53 |
* The maximum total key size: ``"key": {"max_total_size": 4294967295}`` |
| 54 |
|
| 55 |
* and so on. |
| 56 |
|
| 57 |
You can inspect the database by not specifying ``name``: |
| 58 |
|
| 59 |
.. groonga-command |
| 60 |
.. include:: ../../example/reference/commands/object_inspect/usage-database.log |
| 61 |
.. object_inspect |
| 62 |
|
| 63 |
The ``object_inspect`` returns the following information: |
| 64 |
|
| 65 |
* The table type for object name management: |
| 66 |
``"key": {"type": {"name": "table:dat_key"}}`` |
| 67 |
|
| 68 |
* and so on. |
| 69 |
|
| 70 |
Parameters |
| 71 |
---------- |
| 72 |
|
| 73 |
This section describes all parameters. |
| 74 |
|
| 75 |
Required parameters |
| 76 |
^^^^^^^^^^^^^^^^^^^ |
| 77 |
|
| 78 |
There is no required parameter. |
| 79 |
|
| 80 |
Optional parameters |
| 81 |
^^^^^^^^^^^^^^^^^^^ |
| 82 |
|
| 83 |
There is only one optional parameter. |
| 84 |
|
| 85 |
.. _object-inspect-name: |
| 86 |
|
| 87 |
``name`` |
| 88 |
"""""""" |
| 89 |
|
| 90 |
Specifies the object name to be inspected. |
| 91 |
|
| 92 |
If ``name`` isn't specified, the database is inspected. |
| 93 |
|
| 94 |
Return value |
| 95 |
------------ |
| 96 |
|
| 97 |
The command returns an object (nested key and value pairs) that |
| 98 |
includes details of the object (such as table) as body:: |
| 99 |
|
| 100 |
[HEADER, object] |
| 101 |
|
| 102 |
See :doc:`/reference/command/output_format` for ``HEADER``. |
| 103 |
|
| 104 |
The format of the details is depends on object type. For example, |
| 105 |
table has key information but function doesn't have key information. |
| 106 |
|
| 107 |
.. _object-inspect-return-value-database: |
| 108 |
|
| 109 |
Database |
| 110 |
^^^^^^^^ |
| 111 |
|
| 112 |
Database inspection returns the following information:: |
| 113 |
|
| 114 |
{ |
| 115 |
"type": { |
| 116 |
"id": DATABASE_TYPE_ID, |
| 117 |
"name": DATABASE_TYPE_NAME |
| 118 |
}, |
| 119 |
"name_table": DATABASE_NAME_TABLE |
| 120 |
} |
| 121 |
|
| 122 |
.. _object-inspect-return-value-database-type-id: |
| 123 |
|
| 124 |
``DATABASE_TYPE_ID`` |
| 125 |
"""""""""""""""""""" |
| 126 |
|
| 127 |
``DATABASE_TYPE_ID`` is always ``55``. |
| 128 |
|
| 129 |
.. _object-inspect-return-value-database-type-name: |
| 130 |
|
| 131 |
``DATABASE_TYPE_NAME`` |
| 132 |
"""""""""""""""""""""" |
| 133 |
|
| 134 |
``DATABASE_TYPE_NAME`` is always ``"db"``. |
| 135 |
|
| 136 |
.. _object-inspect-return-value-database-name-table: |
| 137 |
|
| 138 |
``DATABASE_NAME_TABLE`` |
| 139 |
""""""""""""""""""""""" |
| 140 |
|
| 141 |
``DATABASE_NAME_TABLE`` is a table for managing object names in the |
| 142 |
database. The table is :ref:`table-pat-key` or |
| 143 |
:ref:`table-dat-key`. Normally, it's :ref:`table-dat-key`. |
| 144 |
|
| 145 |
See :ref:`object-inspect-return-value-table` for format details. |
| 146 |
|
| 147 |
.. _object-inspect-return-value-table: |
| 148 |
|
| 149 |
Table |
| 150 |
^^^^^ |
| 151 |
|
| 152 |
Table inspection returns the following information:: |
| 153 |
|
| 154 |
{ |
| 155 |
"id": TABLE_ID, |
| 156 |
"name": TABLE_NAME, |
| 157 |
"type": { |
| 158 |
"id": TABLE_TYPE_ID, |
| 159 |
"name": TABLE_TYPE_NAME |
| 160 |
}, |
| 161 |
"key": { |
| 162 |
"type": TABLE_KEY_TYPE, |
| 163 |
"total_size": TABLE_KEY_TOTAL_SIZE |
| 164 |
"max_total_size": TABLE_KEY_MAX_TOTAL_SIZE |
| 165 |
}, |
| 166 |
"value": { |
| 167 |
"type": TABLE_VALUE_TYPE, |
| 168 |
}, |
| 169 |
"n_records": TABLE_N_RECORDS |
| 170 |
} |
| 171 |
|
| 172 |
There are some exceptions: |
| 173 |
|
| 174 |
* :ref:`table-no-key` doesn't return key information because it |
| 175 |
doesn't have key. |
| 176 |
|
| 177 |
* :ref:`table-dat-key` doesn't return value information because it |
| 178 |
doesn't have value. |
| 179 |
|
| 180 |
.. _object-inspect-return-value-table-id: |
| 181 |
|
| 182 |
``TABLE_ID`` |
| 183 |
"""""""""""" |
| 184 |
|
| 185 |
The ID of the inspected table. |
| 186 |
|
| 187 |
.. _object-inspect-return-value-table-name: |
| 188 |
|
| 189 |
``TABLE_NAME`` |
| 190 |
"""""""""""""" |
| 191 |
|
| 192 |
The name of the inspected table. |
| 193 |
|
| 194 |
.. _object-inspect-return-value-table-type-id: |
| 195 |
|
| 196 |
``TABLE_TYPE_ID`` |
| 197 |
""""""""""""""""" |
| 198 |
|
| 199 |
The type ID of the inspected table. |
| 200 |
|
| 201 |
Here is a list of type IDs: |
| 202 |
|
| 203 |
.. list-table:: |
| 204 |
:header-rows: 1 |
| 205 |
|
| 206 |
* - Table type |
| 207 |
- ID |
| 208 |
* - :ref:`table-hash-key` |
| 209 |
- ``48`` |
| 210 |
* - :ref:`table-pat-key` |
| 211 |
- ``49`` |
| 212 |
* - :ref:`table-dat-key` |
| 213 |
- ``50`` |
| 214 |
* - :ref:`table-no-key` |
| 215 |
- ``51`` |
| 216 |
|
| 217 |
.. _object-inspect-return-value-table-type-name: |
| 218 |
|
| 219 |
``TABLE_TYPE_NAME`` |
| 220 |
""""""""""""""""""" |
| 221 |
|
| 222 |
The type name of the inspected table. |
| 223 |
|
| 224 |
Here is a list of type names: |
| 225 |
|
| 226 |
.. list-table:: |
| 227 |
:header-rows: 1 |
| 228 |
|
| 229 |
* - Table type |
| 230 |
- Name |
| 231 |
* - :ref:`table-hash-key` |
| 232 |
- ``"table:hash_key"`` |
| 233 |
* - :ref:`table-pat-key` |
| 234 |
- ``"table:pat_key"`` |
| 235 |
* - :ref:`table-dat-key` |
| 236 |
- ``"table:dat_key"`` |
| 237 |
* - :ref:`table-no-key` |
| 238 |
- ``"table:no_key"`` |
| 239 |
|
| 240 |
.. _object-inspect-return-value-table-key-type: |
| 241 |
|
| 242 |
``TABLE_KEY_TYPE`` |
| 243 |
"""""""""""""""""" |
| 244 |
|
| 245 |
The type of key of the inspected table. |
| 246 |
|
| 247 |
See :ref:`object-inspect-return-value-type` for format details. |
| 248 |
|
| 249 |
.. _object-inspect-return-value-table-total-key-size: |
| 250 |
|
| 251 |
``TABLE_KEY_TOTAL_SIZE`` |
| 252 |
"""""""""""""""""""""""" |
| 253 |
|
| 254 |
The total key size of the inspected table in bytes. |
| 255 |
|
| 256 |
.. _object-inspect-return-value-table-max-total-key-size: |
| 257 |
|
| 258 |
``TABLE_KEY_MAX_TOTAL_SIZE`` |
| 259 |
"""""""""""""""""""""""""""" |
| 260 |
|
| 261 |
The maximum total key size of the inspected table in bytes. |
| 262 |
|
| 263 |
.. _object-inspect-return-value-table-value-type: |
| 264 |
|
| 265 |
``TABLE_VALUE_TYPE`` |
| 266 |
"""""""""""""""""""" |
| 267 |
|
| 268 |
The type of value of the inspected table. |
| 269 |
|
| 270 |
See :ref:`object-inspect-return-value-type` for format details. |
| 271 |
|
| 272 |
.. _object-inspect-return-value-table-n-records: |
| 273 |
|
| 274 |
``TABLE_N_RECORDS`` |
| 275 |
""""""""""""""""""" |
| 276 |
|
| 277 |
The number of records of the inspected table. |
| 278 |
|
| 279 |
It's a 64bit unsigned integer value. |
| 280 |
|
| 281 |
.. _object-inspect-return-value-column: |
| 282 |
|
| 283 |
Column |
| 284 |
^^^^^^ |
| 285 |
|
| 286 |
.. versionadded:: 7.0.2 |
| 287 |
|
| 288 |
Scalar column returns the following information:: |
| 289 |
|
| 290 |
{ |
| 291 |
"id": COLUMN_ID, |
| 292 |
"name": COLUMN_NAME |
| 293 |
"table": COLUMN_TABLE, |
| 294 |
"full_name": COLUMN_FULL_NAME, |
| 295 |
"type": { |
| 296 |
"name": COLUMN_TYPE_NAME, |
| 297 |
"raw": { |
| 298 |
"id": COLUMN_TYPE_RAW_ID, |
| 299 |
"name": COLUMN_TYPE_RAW_NAME |
| 300 |
} |
| 301 |
}, |
| 302 |
"value": { |
| 303 |
"type": COLUMN_VALUE_TYPE, |
| 304 |
"compress": DATA_COLUMN_VALUE_COMPRESS_METHOD, |
| 305 |
"compress_filters": [ |
| 306 |
DATA_COLUMN_VALUE_COMPRESS_FILTER, |
| 307 |
... |
| 308 |
] |
| 309 |
} |
| 310 |
} |
| 311 |
|
| 312 |
Vector column is similar to scalar column but there are some |
| 313 |
differences. |
| 314 |
|
| 315 |
* Vector column has ``value.weight`` key. |
| 316 |
|
| 317 |
* Vector column has ``value.weight_float32`` key. |
| 318 |
|
| 319 |
* Vector column has ``value.weight_bfloat16`` key. |
| 320 |
|
| 321 |
Vector column returns the following information:: |
| 322 |
|
| 323 |
{ |
| 324 |
"id": COLUMN_ID, |
| 325 |
"name": COLUMN_NAME |
| 326 |
"table": COLUMN_TABLE, |
| 327 |
"full_name": COLUMN_FULL_NAME, |
| 328 |
"type": { |
| 329 |
"name": COLUMN_TYPE_NAME, |
| 330 |
"raw": { |
| 331 |
"id": COLUMN_TYPE_RAW_ID, |
| 332 |
"name": COLUMN_TYPE_RAW_NAME |
| 333 |
} |
| 334 |
}, |
| 335 |
"value": { |
| 336 |
"type": COLUMN_VALUE_TYPE, |
| 337 |
"compress": DATA_COLUMN_VALUE_COMPRESS_METHOD, |
| 338 |
"weight": VECTOR_COLUMN_VALUE_WEIGHT, |
| 339 |
"weight_float32": VECTOR_COLUMN_VALUE_WEIGHT_FLOAT32, |
| 340 |
"weight_bfloat16": VECTOR_COLUMN_VALUE_WEIGHT_BFLOAT16, |
| 341 |
"compress_filters": [ |
| 342 |
DATA_COLUMN_VALUE_COMPRESS_FILTER, |
| 343 |
... |
| 344 |
] |
| 345 |
} |
| 346 |
} |
| 347 |
|
| 348 |
.. versionadded:: 14.1.0 |
| 349 |
|
| 350 |
Generated scalar/vector column is similar to non generated |
| 351 |
scalar/vector column but there are some differences. |
| 352 |
|
| 353 |
* Generated column has ``value.generator`` key. |
| 354 |
|
| 355 |
* Generated column has ``sources`` key. |
| 356 |
|
| 357 |
Generated column returns the following information:: |
| 358 |
|
| 359 |
{ |
| 360 |
"id": COLUMN_ID, |
| 361 |
"name": COLUMN_NAME |
| 362 |
"table": COLUMN_TABLE, |
| 363 |
"full_name": COLUMN_FULL_NAME, |
| 364 |
"type": { |
| 365 |
"name": COLUMN_TYPE_NAME, |
| 366 |
"raw": { |
| 367 |
"id": COLUMN_TYPE_RAW_ID, |
| 368 |
"name": COLUMN_TYPE_RAW_NAME |
| 369 |
} |
| 370 |
}, |
| 371 |
"value": { |
| 372 |
"type": COLUMN_VALUE_TYPE, |
| 373 |
"compress": DATA_COLUMN_VALUE_COMPRESS_METHOD, |
| 374 |
"weight": VECTOR_COLUMN_VALUE_WEIGHT, |
| 375 |
"weight_float32": VECTOR_COLUMN_VALUE_WEIGHT_FLOAT32, |
| 376 |
"weight_bfloat16": VECTOR_COLUMN_VALUE_WEIGHT_BFLOAT16, |
| 377 |
"compress_filters": [ |
| 378 |
DATA_COLUMN_VALUE_COMPRESS_FILTER, |
| 379 |
... |
| 380 |
] |
| 381 |
"generator": GENERATED_COLUMN_VALUE_GENERATOR |
| 382 |
}, |
| 383 |
"sources": [ |
| 384 |
{ |
| 385 |
"id": GENERATED_COLUMN_SOURCE_ID, |
| 386 |
"name": GENERATED_COLUMN_SOURCE_NAME, |
| 387 |
"table": GENERATED_COLUMN_SOURCE_TABLE, |
| 388 |
"full_name": GENERATED_COLUMN_SOURCE_FULL_NAME |
| 389 |
}, |
| 390 |
... |
| 391 |
] |
| 392 |
} |
| 393 |
|
| 394 |
Index column is similar to data column but there are some differences. |
| 395 |
|
| 396 |
* Index column doesn't have ``value.compress`` key. |
| 397 |
|
| 398 |
* Index column has ``value.section`` key. |
| 399 |
|
| 400 |
* Index column has ``value.weight`` key. |
| 401 |
|
| 402 |
* Index column has ``value.position`` key. |
| 403 |
|
| 404 |
* Index column has ``value.size`` key. |
| 405 |
|
| 406 |
* Index column has ``value.statistics`` key. |
| 407 |
|
| 408 |
* Index column has ``sources`` key. |
| 409 |
|
| 410 |
Index column returns the following information:: |
| 411 |
|
| 412 |
{ |
| 413 |
"id": COLUMN_ID, |
| 414 |
"name": COLUMN_NAME |
| 415 |
"table": COLUMN_TABLE, |
| 416 |
"full_name": COLUMN_FULL_NAME, |
| 417 |
"type": { |
| 418 |
"name": COLUMN_TYPE_NAME, |
| 419 |
"raw": { |
| 420 |
"id": COLUMN_TYPE_RAW_ID, |
| 421 |
"name": COLUMN_TYPE_RAW_NAME |
| 422 |
} |
| 423 |
}, |
| 424 |
"value": { |
| 425 |
"type": COLUMN_VALUE_TYPE, |
| 426 |
"section": INDEX_COLUMN_VALUE_SECTION, |
| 427 |
"weight": INDEX_COLUMN_VALUE_WEIGHT, |
| 428 |
"position": INDEX_COLUMN_VALUE_POSITION, |
| 429 |
"size": INDEX_COLUMN_VALUE_SIZE, |
| 430 |
"statistics": { |
| 431 |
"max_section_id": INDEX_COLUMN_VALUE_STATISTICS_MAX_SECTION_ID, |
| 432 |
"n_garbage_segments": INDEX_COLUMN_VALUE_STATISTICS_N_GARBAGE_SEGMENTS, |
| 433 |
"max_array_segment_id": INDEX_COLUMN_VALUE_STATISTICS_MAX_ARRAY_SEGMENT_ID, |
| 434 |
"n_array_segments": INDEX_COLUMN_VALUE_STATISTICS_N_ARRAY_SEGMENTS, |
| 435 |
"max_buffer_segment_id": INDEX_COLUMN_VALUE_STATISTICS_MAX_BUFFER_SEGMENT_ID, |
| 436 |
"n_buffer_segments": INDEX_COLUMN_VALUE_STATISTICS_N_BUFFER_SEGMENTS, |
| 437 |
"max_in_use_physical_segment_id": INDEX_COLUMN_VALUE_STATISTICS_MAX_IN_USE_PHYSICAL_SEGMENT_ID, |
| 438 |
"n_unmanaged_segments": INDEX_COLUMN_VALUE_STATISTICS_N_UNMANAGED_SEGMENTS, |
| 439 |
"total_chunk_size": INDEX_COLUMN_VALUE_STATISTICS_TOTAL_CHUNK_SIZE, |
| 440 |
"max_in_use_chunk_id": INDEX_COLUMN_VALUE_STATISTICS_MAX_IN_USE_CHUNK_ID, |
| 441 |
"n_garbage_chunks": INDEX_COLUMN_VALUE_STATISTICS_N_GARBAGE_CHUNKS |
| 442 |
"next_physical_segment_id": INDEX_COLUMN_VALUE_STATISTICS_NEXT_PHYSICAL_SEGMENT_ID |
| 443 |
"max_n_physical_segments": INDEX_COLUMN_VALUE_STATISTICS_N_PHYSICAL_SEGMENTS |
| 444 |
} |
| 445 |
}, |
| 446 |
"sources": [ |
| 447 |
{ |
| 448 |
"id": INDEX_COLUMN_SOURCE_ID, |
| 449 |
"name": INDEX_COLUMN_SOURCE_NAME, |
| 450 |
"table": INDEX_COLUMN_SOURCE_TABLE, |
| 451 |
"full_name": INDEX_COLUMN_SOURCE_FULL_NAME |
| 452 |
}, |
| 453 |
... |
| 454 |
] |
| 455 |
} |
| 456 |
|
| 457 |
.. _object-inspect-return-value-column-id: |
| 458 |
|
| 459 |
``COLUMN_ID`` |
| 460 |
""""""""""""" |
| 461 |
|
| 462 |
The ID of the inspected column. |
| 463 |
|
| 464 |
.. _object-inspect-return-value-column-name: |
| 465 |
|
| 466 |
``COLUMN_NAME`` |
| 467 |
""""""""""""""" |
| 468 |
|
| 469 |
The name of the inspected column. |
| 470 |
|
| 471 |
It doesn't include table name. It's just only column name. |
| 472 |
|
| 473 |
If you want full column name (``TABLE_NAME.COLUMN_NAME`` style), use |
| 474 |
:ref:`object-inspect-return-value-column-full-name` instead. |
| 475 |
|
| 476 |
.. _object-inspect-return-value-column-table: |
| 477 |
|
| 478 |
``COLUMN_TABLE`` |
| 479 |
"""""""""""""""" |
| 480 |
|
| 481 |
The table of the inspected column. |
| 482 |
|
| 483 |
See :ref:`object-inspect-return-value-table` for format details. |
| 484 |
|
| 485 |
.. _object-inspect-return-value-column-full-name: |
| 486 |
|
| 487 |
``COLUMN_FULL_NAME`` |
| 488 |
"""""""""""""""""""" |
| 489 |
|
| 490 |
The full name of the inspected column. |
| 491 |
|
| 492 |
It includes both table name and column name as |
| 493 |
``TABLE_NAME.COLUMN_NAME`` format. |
| 494 |
|
| 495 |
If you just want only column name, use |
| 496 |
:ref:`object-inspect-return-value-column-name` instead. |
| 497 |
|
| 498 |
.. _object-inspect-return-value-column-type-name: |
| 499 |
|
| 500 |
``COLUMN_TYPE_NAME`` |
| 501 |
"""""""""""""""""""" |
| 502 |
|
| 503 |
The type name of the inspected column. |
| 504 |
|
| 505 |
Here is a list of type names: |
| 506 |
|
| 507 |
.. list-table:: |
| 508 |
:header-rows: 1 |
| 509 |
|
| 510 |
* - Column type |
| 511 |
- Name |
| 512 |
* - :doc:`/reference/columns/scalar` |
| 513 |
- ``"scalar"`` |
| 514 |
* - :doc:`/reference/columns/vector` |
| 515 |
- ``"vector"`` |
| 516 |
* - :doc:`/reference/columns/index` |
| 517 |
- ``"index"`` |
| 518 |
|
| 519 |
.. _object-inspect-return-value-column-type-raw-id: |
| 520 |
|
| 521 |
``COLUMN_TYPE_RAW_ID`` |
| 522 |
"""""""""""""""""""""" |
| 523 |
|
| 524 |
The raw type ID of the inspected column. |
| 525 |
|
| 526 |
Here is a list of raw type IDs: |
| 527 |
|
| 528 |
.. list-table:: |
| 529 |
:header-rows: 1 |
| 530 |
|
| 531 |
* - Raw column type |
| 532 |
- ID |
| 533 |
* - Fix size column |
| 534 |
- ``64`` |
| 535 |
* - Variable size column |
| 536 |
- ``65`` |
| 537 |
* - Index column |
| 538 |
- ``72`` |
| 539 |
|
| 540 |
.. _object-inspect-return-value-column-type-raw-name: |
| 541 |
|
| 542 |
``COLUMN_TYPE_RAW_NAME`` |
| 543 |
"""""""""""""""""""""""" |
| 544 |
|
| 545 |
The raw type name of the inspected column. |
| 546 |
|
| 547 |
Here is a list of raw type names: |
| 548 |
|
| 549 |
.. list-table:: |
| 550 |
:header-rows: 1 |
| 551 |
|
| 552 |
* - Raw column type |
| 553 |
- Name |
| 554 |
* - Fix size column |
| 555 |
- ``"column:fix_size"`` |
| 556 |
* - Variable size column |
| 557 |
- ``"column:var_size"`` |
| 558 |
* - Index column |
| 559 |
- ``"column:index"`` |
| 560 |
|
| 561 |
.. _object-inspect-return-value-column-value-type: |
| 562 |
|
| 563 |
``COLUMN_VALUE_TYPE`` |
| 564 |
""""""""""""""""""""" |
| 565 |
|
| 566 |
The type of value of the inspected column. |
| 567 |
|
| 568 |
See :ref:`object-inspect-return-value-type` for format details. |
| 569 |
|
| 570 |
.. _object-inspect-return-value-data-column-value-compress-method: |
| 571 |
|
| 572 |
``DATA_COLUMN_VALUE_COMPRESS_METHOD`` |
| 573 |
""""""""""""""""""""""""""""""""""""" |
| 574 |
|
| 575 |
The compress method of value of the inspected data column. |
| 576 |
|
| 577 |
Here is a list of compress methods: |
| 578 |
|
| 579 |
.. list-table:: |
| 580 |
:header-rows: 1 |
| 581 |
|
| 582 |
* - Compress method |
| 583 |
- Value |
| 584 |
* - zlib |
| 585 |
- ``"zlib"`` |
| 586 |
* - LZ4 |
| 587 |
- ``"lz4"`` |
| 588 |
* - Zstandard |
| 589 |
- ``"zstd"`` |
| 590 |
* - None |
| 591 |
- ``null`` |
| 592 |
|
| 593 |
.. seealso:: :ref:`column-create-flags` |
| 594 |
|
| 595 |
.. _object-inspect-return-value-data-column-value-compress-filter: |
| 596 |
|
| 597 |
``DATA_COLUMN_VALUE_COMPRESS_FILTER`` |
| 598 |
""""""""""""""""""""""""""""""""""""" |
| 599 |
|
| 600 |
.. versionadded:: 13.0.8 |
| 601 |
|
| 602 |
The compress filter name of the inspected data column. |
| 603 |
|
| 604 |
Here is a list of compress filters: |
| 605 |
|
| 606 |
.. list-table:: |
| 607 |
:header-rows: 1 |
| 608 |
|
| 609 |
* - Compress filter |
| 610 |
- Value |
| 611 |
* - ``COMPRESS_FILTER_SHUFFLE`` |
| 612 |
- ``"shuffle"`` |
| 613 |
* - ``COMPRESS_FILTER_BYTE_DELTA`` |
| 614 |
- ``"byte_delta"`` |
| 615 |
* - ``COMPRESS_FILTER_TRUNCATE_PRECISION_2BYTES`` |
| 616 |
- ``"truncate_precision_2bytes"`` |
| 617 |
* - ``COMPRESS_FILTER_TRUNCATE_PRECISION_1BYTE`` |
| 618 |
- ``"truncate_precision_1byte"`` |
| 619 |
|
| 620 |
.. seealso:: :ref:`column-create-flags` |
| 621 |
|
| 622 |
.. _object-inspect-return-value-vector-column-value-weight: |
| 623 |
|
| 624 |
``VECTOR_COLUMN_VALUE_WEIGHT`` |
| 625 |
"""""""""""""""""""""""""""""" |
| 626 |
|
| 627 |
.. versionadded:: 10.0.4 |
| 628 |
|
| 629 |
Whether the inspected column is created with ``WITH_WEIGHT`` flag or |
| 630 |
not. The value is ``true`` if ``WITH_WEIGHT`` was specified, ``false`` |
| 631 |
otherwise. |
| 632 |
|
| 633 |
.. seealso:: :ref:`column-create-flags` |
| 634 |
|
| 635 |
.. _object-inspect-return-value-vector-column-value-weight_float32: |
| 636 |
|
| 637 |
``VECTOR_COLUMN_VALUE_WEIGHT_FLOAT32`` |
| 638 |
"""""""""""""""""""""""""""""""""""""" |
| 639 |
|
| 640 |
.. versionadded:: 10.0.4 |
| 641 |
|
| 642 |
Whether the inspected column is created with ``WEIGHT_FLOAT32`` flag |
| 643 |
or not. The value is ``true`` if ``WEIGHT_FLOAT32`` was specified, |
| 644 |
``false`` otherwise. |
| 645 |
|
| 646 |
.. seealso:: :ref:`column-create-flags` |
| 647 |
|
| 648 |
.. _object-inspect-return-value-vector-column-value-weight_bfloat16: |
| 649 |
|
| 650 |
``VECTOR_COLUMN_VALUE_WEIGHT_BFLOAT16`` |
| 651 |
""""""""""""""""""""""""""""""""""""""" |
| 652 |
|
| 653 |
.. versionadded:: 13.1.0 |
| 654 |
|
| 655 |
Whether the inspected column is created with ``WEIGHT_BFLOAT16`` flag |
| 656 |
or not. The value is ``true`` if ``WEIGHT_BFLOAT16`` was specified, |
| 657 |
``false`` otherwise. |
| 658 |
|
| 659 |
.. seealso:: :ref:`column-create-flags` |
| 660 |
|
| 661 |
.. _object-inspect-return-value-generated-column-value-generator: |
| 662 |
|
| 663 |
``GENERATED_COLUMN_VALUE_GENERATOR`` |
| 664 |
"""""""""""""""""""""""""""""""""""" |
| 665 |
|
| 666 |
.. versionadded:: 14.1.0 |
| 667 |
|
| 668 |
The generator expression in :doc:`../grn_expr/script_syntax`. |
| 669 |
|
| 670 |
.. seealso:: :ref:`column-create-generator` |
| 671 |
|
| 672 |
.. _object-inspect-return-value-generated-column-source-id: |
| 673 |
|
| 674 |
``GENERATED_COLUMN_SOURCE_ID`` |
| 675 |
"""""""""""""""""""""""""""""" |
| 676 |
|
| 677 |
The ID of a source column of the inspected generated column. |
| 678 |
|
| 679 |
.. _object-inspect-return-value-generated-column-source-name: |
| 680 |
|
| 681 |
``GENERATED_COLUMN_SOURCE_NAME`` |
| 682 |
"""""""""""""""""""""""""""""""" |
| 683 |
|
| 684 |
The name of a source column of the inspected generated column. |
| 685 |
|
| 686 |
It doesn't include table name. It's just only column name. |
| 687 |
|
| 688 |
If you want full column name (``TABLE_NAME.COLUMN_NAME`` style), use |
| 689 |
:ref:`object-inspect-return-value-generated-column-source-full-name` |
| 690 |
instead. |
| 691 |
|
| 692 |
.. _object-inspect-return-value-generated-column-source-table: |
| 693 |
|
| 694 |
``GENERATED_COLUMN_SOURCE_TABLE`` |
| 695 |
""""""""""""""""""""""""""""""""" |
| 696 |
|
| 697 |
The table of a source column of the inspected generated column. |
| 698 |
|
| 699 |
See :ref:`object-inspect-return-value-table` for format details. |
| 700 |
|
| 701 |
.. _object-inspect-return-value-generated-column-source-full-name: |
| 702 |
|
| 703 |
``GENERATED_COLUMN_SOURCE_FULL_NAME`` |
| 704 |
""""""""""""""""""""""""""""""""""""" |
| 705 |
|
| 706 |
The full name of a source column of the inspected generated column. |
| 707 |
|
| 708 |
It includes both table name and column name as |
| 709 |
``TABLE_NAME.COLUMN_NAME`` format. |
| 710 |
|
| 711 |
If you just want only column name, use |
| 712 |
:ref:`object-inspect-return-value-generated-column-source-name` |
| 713 |
instead. |
| 714 |
|
| 715 |
.. _object-inspect-return-value-index-column-value-section: |
| 716 |
|
| 717 |
``INDEX_COLUMN_VALUE_SECTION`` |
| 718 |
"""""""""""""""""""""""""""""" |
| 719 |
|
| 720 |
Whether the inspected column is created with ``WITH_SECTION`` flag or |
| 721 |
not. The value is ``true`` if ``WITH_SECTION`` was specified, |
| 722 |
``false`` otherwise. |
| 723 |
|
| 724 |
.. seealso:: :ref:`column-create-flags` |
| 725 |
|
| 726 |
.. _object-inspect-return-value-index-column-value-weight: |
| 727 |
|
| 728 |
``INDEX_COLUMN_VALUE_WEIGHT`` |
| 729 |
""""""""""""""""""""""""""""" |
| 730 |
|
| 731 |
Whether the inspected column is created with ``WITH_WEIGHT`` flag or |
| 732 |
not. The value is ``true`` if ``WITH_WEIGHT`` was specified, ``false`` |
| 733 |
otherwise. |
| 734 |
|
| 735 |
.. seealso:: :ref:`column-create-flags` |
| 736 |
|
| 737 |
.. _object-inspect-return-value-index-column-value-position: |
| 738 |
|
| 739 |
``INDEX_COLUMN_VALUE_POSITION`` |
| 740 |
""""""""""""""""""""""""""""""" |
| 741 |
|
| 742 |
Whether the inspected column is created with ``WITH_POSITION`` flag or |
| 743 |
not. The value is ``true`` if ``WITH_POSITION`` was specified, |
| 744 |
``false`` otherwise. |
| 745 |
|
| 746 |
.. seealso:: :ref:`column-create-flags` |
| 747 |
|
| 748 |
.. _object-inspect-return-value-index-column-value-size: |
| 749 |
|
| 750 |
``INDEX_COLUMN_VALUE_SIZE`` |
| 751 |
""""""""""""""""""""""""""" |
| 752 |
|
| 753 |
The size of the inspected index column. Index size can be specified by |
| 754 |
:ref:`column-create-flags`. |
| 755 |
|
| 756 |
Here is a list of index column sizes: |
| 757 |
|
| 758 |
.. list-table:: |
| 759 |
:header-rows: 1 |
| 760 |
|
| 761 |
* - Index column size |
| 762 |
- Value |
| 763 |
* - ``INDEX_SMALL`` |
| 764 |
- ``"small"`` |
| 765 |
* - ``INDEX_MEDIUM`` |
| 766 |
- ``"medium"`` |
| 767 |
* - ``INDEX_LARGE`` |
| 768 |
- ``"large"`` |
| 769 |
* - Default |
| 770 |
- ``"normal"`` |
| 771 |
|
| 772 |
.. _object-inspect-return-value-index-column-value-statistics-max-section-id: |
| 773 |
|
| 774 |
``INDEX_COLUMN_VALUE_STATISTICS_MAX_SECTION_ID`` |
| 775 |
"""""""""""""""""""""""""""""""""""""""""""""""" |
| 776 |
|
| 777 |
The max section ID in the inspected index column. |
| 778 |
|
| 779 |
It's always ``0`` for index column that is created without |
| 780 |
``WITH_SECTION`` flag. |
| 781 |
|
| 782 |
It's ``0`` or larger for index column that is created with |
| 783 |
``WITH_SECTION`` flag. It's ``0`` for empty ``WITH_SECTION`` index |
| 784 |
column. It's ``1`` or larger for non-empty ``WITH_SECTION`` index |
| 785 |
column. |
| 786 |
|
| 787 |
The max value for ``WITH_SECTION`` index column is the number of |
| 788 |
source columns. |
| 789 |
|
| 790 |
.. _object-inspect-return-value-index-column-value-statistics-n-garbage-segments: |
| 791 |
|
| 792 |
``INDEX_COLUMN_VALUE_STATISTICS_N_GARBAGE_SEGMENTS`` |
| 793 |
"""""""""""""""""""""""""""""""""""""""""""""""""""" |
| 794 |
|
| 795 |
The number of garbage segments in the inspected index column. |
| 796 |
|
| 797 |
Index column reuses segment (internal allocated space) that is no |
| 798 |
longer used. It's called "garbage segment". |
| 799 |
|
| 800 |
The max value is the max number of segments. See |
| 801 |
:ref:`object-inspect-return-value-index-column-value-statistics-n-physical-segments` |
| 802 |
for the max number of segments. |
| 803 |
|
| 804 |
.. _object-inspect-return-value-index-column-value-statistics-max-array-segment-id: |
| 805 |
|
| 806 |
``INDEX_COLUMN_VALUE_STATISTICS_MAX_ARRAY_SEGMENT_ID`` |
| 807 |
"""""""""""""""""""""""""""""""""""""""""""""""""""""" |
| 808 |
|
| 809 |
The max ID of segment used for "array" in the inspected index column. |
| 810 |
|
| 811 |
"array" is used for managing "buffer". |
| 812 |
|
| 813 |
The max value is the max number of segments. See |
| 814 |
:ref:`object-inspect-return-value-index-column-value-statistics-n-physical-segments` |
| 815 |
for the max number of segments. |
| 816 |
|
| 817 |
.. _object-inspect-return-value-index-column-value-statistics-n-array-segments: |
| 818 |
|
| 819 |
``INDEX_COLUMN_VALUE_STATISTICS_N_ARRAY_SEGMENTS`` |
| 820 |
"""""""""""""""""""""""""""""""""""""""""""""""""" |
| 821 |
|
| 822 |
The number of segments used for "array" in the inspected index column. |
| 823 |
|
| 824 |
"array" is used for managing "buffer". |
| 825 |
|
| 826 |
The max value is ``the max number of segments - the number of segments |
| 827 |
used for "buffer"``. See |
| 828 |
:ref:`object-inspect-return-value-index-column-value-statistics-n-physical-segments` |
| 829 |
for the max number of segments. |
| 830 |
|
| 831 |
.. _object-inspect-return-value-index-column-value-statistics-max-buffer-segment-id: |
| 832 |
|
| 833 |
``INDEX_COLUMN_VALUE_STATISTICS_MAX_BUFFER_SEGMENT_ID`` |
| 834 |
""""""""""""""""""""""""""""""""""""""""""""""""""""""" |
| 835 |
|
| 836 |
The max ID of segment used for "buffer" in the inspected index column. |
| 837 |
|
| 838 |
"buffer" is used for storing posting lists. |
| 839 |
|
| 840 |
The max value is the max number of segments. See |
| 841 |
:ref:`object-inspect-return-value-index-column-value-statistics-n-physical-segments` |
| 842 |
for the max number of segments. |
| 843 |
|
| 844 |
.. _object-inspect-return-value-index-column-value-statistics-n-buffer-segments: |
| 845 |
|
| 846 |
``INDEX_COLUMN_VALUE_STATISTICS_N_BUFFER_SEGMENTS`` |
| 847 |
""""""""""""""""""""""""""""""""""""""""""""""""""" |
| 848 |
|
| 849 |
The number of segments used for "buffer" in the inspected index column. |
| 850 |
|
| 851 |
"buffer" is used for storing posting lists. |
| 852 |
|
| 853 |
The max value is ``the max number of segments - the number of segments |
| 854 |
used for "array"``. See |
| 855 |
:ref:`object-inspect-return-value-index-column-value-statistics-n-physical-segments` |
| 856 |
for the max number of segments. |
| 857 |
|
| 858 |
.. _object-inspect-return-value-index-column-value-statistics-max-in-use-physical-segment-id: |
| 859 |
|
| 860 |
``INDEX_COLUMN_VALUE_STATISTICS_MAX_IN_USE_PHYSICAL_SEGMENT_ID`` |
| 861 |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" |
| 862 |
|
| 863 |
The max segment ID in use as "garbage", "array" or "buffer" in the |
| 864 |
inspected index column. |
| 865 |
|
| 866 |
The max value is the max number of segments. See |
| 867 |
:ref:`object-inspect-return-value-index-column-value-statistics-n-physical-segments` |
| 868 |
for the max number of segments. |
| 869 |
|
| 870 |
.. _object-inspect-return-value-index-column-value-statistics-n-unmanaged-segments: |
| 871 |
|
| 872 |
``INDEX_COLUMN_VALUE_STATISTICS_N_UNMANAGED_SEGMENTS`` |
| 873 |
"""""""""""""""""""""""""""""""""""""""""""""""""""""" |
| 874 |
|
| 875 |
The number of unmanaged segments in the inspected index column. |
| 876 |
|
| 877 |
It must be ``0``. |
| 878 |
|
| 879 |
.. _object-inspect-return-value-index-column-value-statistics-total-chunk-size: |
| 880 |
|
| 881 |
``INDEX_COLUMN_VALUE_STATISTICS_TOTAL_CHUNK_SIZE`` |
| 882 |
"""""""""""""""""""""""""""""""""""""""""""""""""" |
| 883 |
|
| 884 |
The total "chunk" size in the inspected index column. |
| 885 |
|
| 886 |
"chunk" is used for storing posting lists. "buffer" is mutable but |
| 887 |
"chunk" is immutable. "chunk" is more space effective than |
| 888 |
"buffer". "buffer" is more update effective than "chunk". |
| 889 |
|
| 890 |
Small posting lists are stored into "buffer". Posting lists in |
| 891 |
"buffer" are moved to "chunk" when these posting lists are grew. |
| 892 |
|
| 893 |
The max value is ``the max size of a chunk * the max number of |
| 894 |
chunks``. But you will not be able to use all spaces because there are |
| 895 |
overheads. |
| 896 |
|
| 897 |
The max size of a chunk is ``2 ** 22`` bytes (4MiB). The max |
| 898 |
number of chunks depend on index size: |
| 899 |
|
| 900 |
.. list-table:: |
| 901 |
:header-rows: 1 |
| 902 |
|
| 903 |
* - Index column size |
| 904 |
- The max number of chunks |
| 905 |
* - ``INDEX_SMALL`` |
| 906 |
- ``2**10`` (1024) |
| 907 |
* - ``INDEX_MEDIUM`` |
| 908 |
- ``2**14`` (16384) |
| 909 |
* - Default |
| 910 |
- ``2**18`` (262144) |
| 911 |
|
| 912 |
.. _object-inspect-return-value-index-column-value-statistics-max-in-use-chunk-id: |
| 913 |
|
| 914 |
``INDEX_COLUMN_VALUE_STATISTICS_MAX_IN_USE_CHUNK_ID`` |
| 915 |
""""""""""""""""""""""""""""""""""""""""""""""""""""" |
| 916 |
|
| 917 |
The max "chunk" ID in use in the inspected index column. |
| 918 |
|
| 919 |
The max value is the max number of chunks. See |
| 920 |
:ref:`object-inspect-return-value-index-column-value-statistics-total-chunk-size` |
| 921 |
for the max number of chunks. |
| 922 |
|
| 923 |
.. _object-inspect-return-value-index-column-value-statistics-n-garbage-chunks: |
| 924 |
|
| 925 |
``INDEX_COLUMN_VALUE_STATISTICS_N_GARBAGE_CHUNKS`` |
| 926 |
"""""""""""""""""""""""""""""""""""""""""""""""""" |
| 927 |
|
| 928 |
The array of the number of garbage "chunks" in the inspected index |
| 929 |
column. |
| 930 |
|
| 931 |
Garbage "chunks" are managed by separated 14 spaces. It shows all the |
| 932 |
number of garbage "chunks" as an array like the following:: |
| 933 |
|
| 934 |
[ |
| 935 |
N_GARBAGE_CHUNKS_IN_SPACE0, |
| 936 |
N_GARBAGE_CHUNKS_IN_SPACE1, |
| 937 |
... |
| 938 |
N_GARBAGE_CHUNKS_IN_SPACE13 |
| 939 |
] |
| 940 |
|
| 941 |
The max value of each space is the max number of chunks. See |
| 942 |
:ref:`object-inspect-return-value-index-column-value-statistics-total-chunk-size` |
| 943 |
for the max number of chunks. |
| 944 |
|
| 945 |
.. _object-inspect-return-value-index-column-value-statistics-next-physical-segment-id: |
| 946 |
|
| 947 |
``INDEX_COLUMN_VALUE_STATISTICS_NEXT_PHYSICAL_SEGMENT_ID`` |
| 948 |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""" |
| 949 |
|
| 950 |
.. versionadded:: 9.0.2 |
| 951 |
|
| 952 |
This value is the ID of the segment. The inspected index column use it as the next segment ID. |
| 953 |
The max value is the max number of segments. See |
| 954 |
:ref:`object-inspect-return-value-index-column-value-statistics-n-physical-segments` |
| 955 |
for the max number of segments. |
| 956 |
|
| 957 |
.. _object-inspect-return-value-index-column-value-statistics-n-physical-segments: |
| 958 |
|
| 959 |
``INDEX_COLUMN_VALUE_STATISTICS_N_PHYSICAL_SEGMENTS`` |
| 960 |
""""""""""""""""""""""""""""""""""""""""""""""""""""" |
| 961 |
|
| 962 |
.. versionadded:: 9.0.2 |
| 963 |
|
| 964 |
This value the max number of segments. It depends on index size: |
| 965 |
|
| 966 |
.. list-table:: |
| 967 |
:header-rows: 1 |
| 968 |
|
| 969 |
* - Index column size |
| 970 |
- The max number of segments |
| 971 |
* - ``INDEX_SMALL`` |
| 972 |
- ``2**9`` (512) |
| 973 |
* - ``INDEX_MEDIUM`` |
| 974 |
- ``2**16`` (65536) |
| 975 |
* - ``INDEX_LARGE`` |
| 976 |
- ``2**17 * 2`` (262144) |
| 977 |
* - Default |
| 978 |
- ``2**17`` (131072) |
| 979 |
|
| 980 |
If the number of segments tend to exceeds near the future, you need to consider to adopt ``INDEX_XXX`` flags. |
| 981 |
|
| 982 |
.. _object-inspect-return-value-index-column-source-id: |
| 983 |
|
| 984 |
``INDEX_COLUMN_SOURCE_ID`` |
| 985 |
"""""""""""""""""""""""""" |
| 986 |
|
| 987 |
The ID of a source column of the inspected index column. |
| 988 |
|
| 989 |
.. _object-inspect-return-value-index-column-source-name: |
| 990 |
|
| 991 |
``INDEX_COLUMN_SOURCE_NAME`` |
| 992 |
"""""""""""""""""""""""""""" |
| 993 |
|
| 994 |
The name of a source column of the inspected index column. |
| 995 |
|
| 996 |
It doesn't include table name. It's just only column name. |
| 997 |
|
| 998 |
If you want full column name (``TABLE_NAME.COLUMN_NAME`` style), use |
| 999 |
:ref:`object-inspect-return-value-index-column-source-full-name` |
| 1000 |
instead. |
| 1001 |
|
| 1002 |
.. _object-inspect-return-value-index-column-source-table: |
| 1003 |
|
| 1004 |
``INDEX_COLUMN_SOURCE_TABLE`` |
| 1005 |
""""""""""""""""""""""""""""" |
| 1006 |
|
| 1007 |
The table of a source column of the inspected index column. |
| 1008 |
|
| 1009 |
See :ref:`object-inspect-return-value-table` for format details. |
| 1010 |
|
| 1011 |
.. _object-inspect-return-value-index-column-source-full-name: |
| 1012 |
|
| 1013 |
``INDEX_COLUMN_SOURCE_FULL_NAME`` |
| 1014 |
""""""""""""""""""""""""""""""""" |
| 1015 |
|
| 1016 |
The full name of a source column of the inspected index column. |
| 1017 |
|
| 1018 |
It includes both table name and column name as |
| 1019 |
``TABLE_NAME.COLUMN_NAME`` format. |
| 1020 |
|
| 1021 |
If you just want only column name, use |
| 1022 |
:ref:`object-inspect-return-value-index-column-source-name` instead. |
| 1023 |
|
| 1024 |
|
| 1025 |
.. _object-inspect-return-value-type: |
| 1026 |
|
| 1027 |
Type |
| 1028 |
"""" |
| 1029 |
|
| 1030 |
Type inspection returns the following information:: |
| 1031 |
|
| 1032 |
{ |
| 1033 |
"id": TYPE_ID, |
| 1034 |
"name": TYPE_NAME, |
| 1035 |
"type": { |
| 1036 |
"id": TYPE_ID_OF_TYPE, |
| 1037 |
"name": TYPE_NAME_OF_TYPE |
| 1038 |
}, |
| 1039 |
"size": TYPE_SIZE |
| 1040 |
} |
| 1041 |
|
| 1042 |
.. _object-inspect-return-value-type-id: |
| 1043 |
|
| 1044 |
``TYPE_ID`` |
| 1045 |
""""""""""" |
| 1046 |
|
| 1047 |
The ID of the inspected type. |
| 1048 |
|
| 1049 |
Here is an ID list of builtin types: |
| 1050 |
|
| 1051 |
.. list-table:: |
| 1052 |
:header-rows: 1 |
| 1053 |
|
| 1054 |
* - Type |
| 1055 |
- ID |
| 1056 |
* - :ref:`builtin-type-bool` |
| 1057 |
- ``3`` |
| 1058 |
* - :ref:`builtin-type-int8` |
| 1059 |
- ``4`` |
| 1060 |
* - :ref:`builtin-type-uint8` |
| 1061 |
- ``5`` |
| 1062 |
* - :ref:`builtin-type-int16` |
| 1063 |
- ``6`` |
| 1064 |
* - :ref:`builtin-type-uint16` |
| 1065 |
- ``7`` |
| 1066 |
* - :ref:`builtin-type-int32` |
| 1067 |
- ``8`` |
| 1068 |
* - :ref:`builtin-type-uint32` |
| 1069 |
- ``9`` |
| 1070 |
* - :ref:`builtin-type-int64` |
| 1071 |
- ``10`` |
| 1072 |
* - :ref:`builtin-type-uint64` |
| 1073 |
- ``11`` |
| 1074 |
* - :ref:`builtin-type-float` |
| 1075 |
- ``12`` |
| 1076 |
* - :ref:`builtin-type-time` |
| 1077 |
- ``13`` |
| 1078 |
* - :ref:`builtin-type-short-text` |
| 1079 |
- ``14`` |
| 1080 |
* - :ref:`builtin-type-text` |
| 1081 |
- ``15`` |
| 1082 |
* - :ref:`builtin-type-long-text` |
| 1083 |
- ``16`` |
| 1084 |
* - :ref:`builtin-type-tokyo-geo-point` |
| 1085 |
- ``17`` |
| 1086 |
* - :ref:`builtin-type-wgs84-geo-point` |
| 1087 |
- ``18`` |
| 1088 |
|
| 1089 |
.. _object-inspect-return-value-type-name: |
| 1090 |
|
| 1091 |
``TYPE_NAME`` |
| 1092 |
""""""""""""" |
| 1093 |
|
| 1094 |
The name of the inspected type. |
| 1095 |
|
| 1096 |
Here is a name list of builtin types: |
| 1097 |
|
| 1098 |
* :ref:`builtin-type-bool` |
| 1099 |
* :ref:`builtin-type-int8` |
| 1100 |
* :ref:`builtin-type-uint8` |
| 1101 |
* :ref:`builtin-type-int16` |
| 1102 |
* :ref:`builtin-type-uint16` |
| 1103 |
* :ref:`builtin-type-int32` |
| 1104 |
* :ref:`builtin-type-uint32` |
| 1105 |
* :ref:`builtin-type-int64` |
| 1106 |
* :ref:`builtin-type-uint64` |
| 1107 |
* :ref:`builtin-type-float` |
| 1108 |
* :ref:`builtin-type-time` |
| 1109 |
* :ref:`builtin-type-short-text` |
| 1110 |
* :ref:`builtin-type-text` |
| 1111 |
* :ref:`builtin-type-long-text` |
| 1112 |
* :ref:`builtin-type-tokyo-geo-point` |
| 1113 |
* :ref:`builtin-type-wgs84-geo-point` |
| 1114 |
|
| 1115 |
.. _object-inspect-return-value-type-id-of-type: |
| 1116 |
|
| 1117 |
``TYPE_ID_OF_TYPE`` |
| 1118 |
""""""""""""""""""" |
| 1119 |
|
| 1120 |
``TYPE_ID_OF_TYPE`` is always ``32``. |
| 1121 |
|
| 1122 |
.. _object-inspect-return-value-type-name-of-type: |
| 1123 |
|
| 1124 |
``TYPE_NAME_OF_TYPE`` |
| 1125 |
""""""""""""""""""""" |
| 1126 |
|
| 1127 |
``TYPE_NAME_OF_TYPE`` is always ``type``. |
| 1128 |
|
| 1129 |
.. _object-inspect-return-value-type-size: |
| 1130 |
|
| 1131 |
``TYPE_SIZE`` |
| 1132 |
""""""""""""" |
| 1133 |
|
| 1134 |
``TYPE_SIZE`` is the size of the inspected type in bytes. If the |
| 1135 |
inspected type is variable size type, the size means the maximum size. |