Avro 形式を読み込む
bookmark_borderbookmark
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Avro 形式で読み込むには、BigQueryIO コネクタを使用します。
もっと見る
このコードサンプルを含む詳細なドキュメントについては、以下をご覧ください。
コードサンプル
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],[],[[["This code sample demonstrates how to use the BigQueryIO connector to read data in Avro format from a BigQuery table."],["The code defines a custom data type, `MyData`, to hold records read from the table, with fields for `name` and `age`."],["A `FromSchemaAndRecord` function is implemented to convert Avro records from BigQuery into `MyData` instances."],["The pipeline reads data using `BigQueryIO.read()` and a custom parsing function, then maps it to the `MyData` type for processing."],["The sample outputs the data to the system, providing name and age from each record that was read from the BigQuery table."]]],[]]