> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-fix-nav-issues.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> RowBinaryWithNamesAndTypes フォーマットに関するドキュメント

# RowBinaryWithNamesAndTypes

| 入力 | 出力 | エイリアス |
| -- | -- | ----- |
| ✔  | ✔  |       |

<div id="description">
  ## 説明
</div>

[RowBinary](/ja/reference/formats/RowBinary/RowBinary) フォーマットと似ていますが、ヘッダーが追加されています。

* カラム数 (N) を [`LEB128`](https://en.wikipedia.org/wiki/LEB128) でエンコードした値。
* カラム名を指定する N 個の `String`。
* カラムの型を指定する N 個の `String`。

<div id="example-usage">
  ## 使用例
</div>

<div id="format-settings">
  ## フォーマット設定
</div>

以下の設定は、すべての `RowBinary` 系フォーマットに共通です。

| 設定                                                                                                                                       | 説明                                                                                                                                                                                                                 | デフォルト   |
| ---------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------- |
| [`format_binary_max_string_size`](/ja/reference/settings/formats#format_binary_max_string_size)                                          | RowBinary フォーマットで許可される String の最大サイズです。                                                                                                                                                                            | `1GiB`  |
| [`output_format_binary_encode_types_in_binary_format`](/ja/reference/settings/formats#input_format_binary_decode_types_in_binary_format) | [`RowBinaryWithNamesAndTypes`](/ja/reference/formats/RowBinary/RowBinaryWithNamesAndTypes) 出力フォーマットで、ヘッダー内の型を、型名の文字列ではなく [`binary encoding`](/ja/reference/data-types/data-types-binary-encoding) を使って書き込めるようにします。 | `false` |
| [`input_format_binary_decode_types_in_binary_format`](/ja/reference/settings/formats#input_format_binary_decode_types_in_binary_format)  | [`RowBinaryWithNamesAndTypes`](/ja/reference/formats/RowBinary/RowBinaryWithNamesAndTypes) 入力フォーマットで、ヘッダー内の型を、型名の文字列ではなく [`binary encoding`](/ja/reference/data-types/data-types-binary-encoding) を使って読み取れるようにします。 | `false` |
| [`output_format_binary_write_json_as_string`](/ja/reference/settings/formats#output_format_binary_write_json_as_string)                  | [`RowBinary`](/ja/reference/formats/RowBinary/RowBinary) 出力フォーマットで、[`JSON`](/ja/reference/data-types/newjson) データ型の値を `JSON` [String](/ja/reference/data-types/string) 値として書き込めるようにします。                            | `false` |
| [`input_format_binary_read_json_as_string`](/ja/reference/settings/formats#input_format_binary_read_json_as_string)                      | [`RowBinary`](/ja/reference/formats/RowBinary/RowBinary) 入力フォーマットで、[`JSON`](/ja/reference/data-types/newjson) データ型の値を `JSON` [String](/ja/reference/data-types/string) 値として読み取れるようにします。                            | `false` |

<Note>
  設定 [`input_format_with_names_use_header`](/ja/reference/settings/formats#input_format_with_names_use_header) が 1 に設定されている場合、
  入力データのカラムは名前に基づいてテーブルのカラムに対応付けられ、設定 [input\_format\_skip\_unknown\_fields](/ja/reference/settings/formats#input_format_skip_unknown_fields) が 1 に設定されていれば、不明な名前のカラムはスキップされます。
  それ以外の場合は、最初の行がスキップされます。
  設定 [`input_format_with_types_use_header`](/ja/reference/settings/formats#input_format_with_types_use_header) が `1` に設定されている場合、
  入力データの型は、テーブル内の対応するカラムの型と比較されます。それ以外の場合は、2 行目がスキップされます。
</Note>
