| Modifier and Type | Method and Description |
|---|---|
static JniWrapper |
get() |
long |
makeFileSystemDatasetFactory(String uri,
int fileFormat)
Create FileSystemDatasetFactory and return its native pointer.
|
void |
writeFromScannerToFile(long streamAddress,
long fileFormat,
String uri,
String[] partitionColumns,
int maxPartitions,
String baseNameTemplate)
Write the content in a
ArrowArrayStream into files. |
public static JniWrapper get()
public long makeFileSystemDatasetFactory(String uri, int fileFormat)
uri - file uri to read, either a file or a directoryfileFormat - file format IDFileFormatpublic void writeFromScannerToFile(long streamAddress,
long fileFormat,
String uri,
String[] partitionColumns,
int maxPartitions,
String baseNameTemplate)
ArrowArrayStream into files. This internally
depends on C++ write API: FileSystemDataset::Write.streamAddress - the ArrowArrayStream addressfileFormat - target file format (ID)uri - target file uripartitionColumns - columns used to partition output filesmaxPartitions - maximum partitions to be included in written filesbaseNameTemplate - file name template used to make partitions. E.g. "dat_{i}", i is current partition
ID around all written files.Copyright © 2023 The Apache Software Foundation. All rights reserved.