public class DatasetFileWriter extends Object
| Constructor and Description |
|---|
DatasetFileWriter() |
| Modifier and Type | Method and Description |
|---|---|
static void |
write(BufferAllocator allocator,
ArrowReader reader,
FileFormat format,
String uri)
Write the contents of an ArrowReader as a dataset, with default partitioning settings.
|
static void |
write(BufferAllocator allocator,
ArrowReader reader,
FileFormat format,
String uri,
String[] partitionColumns,
int maxPartitions,
String baseNameTemplate)
Write the contents of an ArrowReader as a dataset.
|
public static void write(BufferAllocator allocator, ArrowReader reader, FileFormat format, String uri, String[] partitionColumns, int maxPartitions, String baseNameTemplate)
reader - the datasource for writingformat - target file formaturi - target file urimaxPartitions - maximum partitions to be included in written filespartitionColumns - columns used to partition output files. Empty to disable partitioningbaseNameTemplate - file name template used to make partitions. E.g. "dat_{i}", i is current partition
ID around all written files.public static void write(BufferAllocator allocator, ArrowReader reader, FileFormat format, String uri)
reader - the datasource for writingformat - target file formaturi - target file uriCopyright © 2023 The Apache Software Foundation. All rights reserved.