Avro#
- class pylibcudf.io.avro.AvroReaderOptions#
The settings to use for
read_avro
For details, seecudf::io::avro_reader_options
Methods
builder
(SourceInfo source)Create a AvroWriterOptionsBuilder object
set_columns
(self, list col_names)Set names of the column to be read.
- static builder(SourceInfo source)#
Create a AvroWriterOptionsBuilder object
For details, see
cudf::io::avro_reader_options::builder()
- Parameters:
- sinkSourceInfo
The source to read the Avro file from.
- Returns:
- AvroReaderOptionsBuilder
Builder to build AvroReaderOptions
- set_columns(self, list col_names) void #
Set names of the column to be read.
- Parameters:
- col_nameslist[str]
List of column names
- Returns:
- None
- pylibcudf.io.avro.read_avro(AvroReaderOptions options) TableWithMetadata #
Read from Avro format.
The source to read from and options are encapsulated by the options object.
For details, see
read_avro()
.- Parameters:
- options: AvroReaderOptions
Settings for controlling reading behavior