Membaca format Avro
bookmark_borderbookmark
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Gunakan konektor BigQueryIO untuk membaca dalam format Avro.
Mempelajari lebih lanjut
Untuk dokumentasi mendetail yang menyertakan contoh kode ini, lihat artikel berikut:
Contoh kode
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","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."]]],[]]