Class ParquetTools
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ParquetInstructions
static final ParquetInstructions
static final ParquetInstructions
static final ParquetInstructions
Deprecated.Use LZ4_RAW instead, as explained herestatic final ParquetInstructions
static final ParquetInstructions
static final ParquetInstructions
static final ParquetInstructions
static final ParquetInstructions
-
Method Summary
Modifier and TypeMethodDescriptionstatic Pair<List<ColumnDefinition<?>>,
ParquetInstructions> convertSchema
(@NotNull org.apache.parquet.schema.MessageType schema, @NotNull Map<String, String> keyValueMetadata, @NotNull ParquetInstructions readInstructionsIn) Convert schema information from aParquetMetadata
intoColumnDefinitions
.static void
deleteTable
(File path) Deletes a table on disk.static ParquetFileReader
getParquetFileReader
(@NotNull File parquetFile, @NotNull ParquetInstructions readInstructions) Make aParquetFileReader
for the suppliedFile
.static ParquetFileReader
getParquetFileReader
(@NotNull URI parquetFileURI, @NotNull ParquetInstructions readInstructions) Make aParquetFileReader
for the suppliedURI
.static ParquetFileReader
getParquetFileReaderChecked
(@NotNull File parquetFile, @NotNull ParquetInstructions readInstructions) Make aParquetFileReader
for the suppliedFile
.static ParquetFileReader
getParquetFileReaderChecked
(@NotNull URI parquetFileURI, @NotNull ParquetInstructions readInstructions) Make aParquetFileReader
for the suppliedURI
.static String
getRelativeIndexFilePath
(@NotNull File tableDest, @NotNull String columnName) Generates the index file path relative to the table destination file path.static String
legacyGroupingFileName
(@NotNull File tableDest, @NotNull String columnName) Legacy method for generating a grouping file name.static Table
readFlatPartitionedTable
(@NotNull File directory, @NotNull ParquetInstructions readInstructions) Creates a partitioned table via the flat parquet files from the rootdirectory
, inferring the table definition from those files.static Table
readFlatPartitionedTable
(@NotNull File directory, @NotNull ParquetInstructions readInstructions, @NotNull TableDefinition tableDefinition) Creates a partitioned table via the flat parquet files from the rootdirectory
using the providedtableDefinition
.static Table
readKeyValuePartitionedTable
(@NotNull File directory, @NotNull ParquetInstructions readInstructions) Creates a partitioned table via the key-value partitioned parquet files from the rootdirectory
, inferring the table definition from those files.static Table
readKeyValuePartitionedTable
(@NotNull File directory, @NotNull ParquetInstructions readInstructions, @NotNull TableDefinition tableDefinition) Creates a partitioned table via the key-value partitioned parquet files from the rootdirectory
using the providedtableDefinition
.static Table
readParquetSchemaAndTable
(@NotNull File source, @NotNull ParquetInstructions readInstructionsIn, org.apache.commons.lang3.mutable.MutableObject<ParquetInstructions> instructionsOut) static Table
readPartitionedTable
(@NotNull TableLocationKeyFinder<ParquetTableLocationKey> locationKeyFinder, @NotNull ParquetInstructions readInstructions) Reads in a table from files discovered withlocationKeyFinder
using a definition built from the highest (bylocation key
order) location found, which must have non-null partition values for all partition keys.static Table
readPartitionedTable
(@NotNull TableLocationKeyFinder<ParquetTableLocationKey> locationKeyFinder, @NotNull ParquetInstructions readInstructions, @NotNull TableDefinition tableDefinition) Reads in a table from files discovered withlocationKeyFinder
using the provided table definition.static Table
readPartitionedTableInferSchema
(@NotNull TableLocationKeyFinder<ParquetTableLocationKey> locationKeyFinder, @NotNull ParquetInstructions readInstructions) static Table
readPartitionedTableWithMetadata
(@NotNull File directory, @NotNull ParquetInstructions readInstructions) Reads in a table using metadata files found in the supplied directory.static Table
readSingleFileTable
(@NotNull ParquetTableLocationKey tableLocationKey, @NotNull ParquetInstructions readInstructions, @NotNull TableDefinition tableDefinition) Reads in a table from a single parquet file using the provided table definition.static Table
readSingleFileTable
(@NotNull File file, @NotNull ParquetInstructions readInstructions) Creates a single table via the parquetfile
using the table definition derived from thatfile
.static Table
readSingleFileTable
(@NotNull File file, @NotNull ParquetInstructions readInstructions, @NotNull TableDefinition tableDefinition) Creates a single table via the parquetfile
using the providedtableDefinition
.static Table
readSingleFileTable
(@NotNull String source, @NotNull ParquetInstructions readInstructions) Creates a single table via the parquetsource
using the providedtableDefinition
.static Table
readSingleFileTable
(@NotNull String source, @NotNull ParquetInstructions readInstructions, @NotNull TableDefinition tableDefinition) Creates a single table via the parquetsource
using the providedtableDefinition
.static Table
Reads in a table from a single parquet file, metadata file, or directory with recognized layout.static Table
readTable
(@NotNull File sourceFile, @NotNull ParquetInstructions readInstructions) Reads in a table from a single parquet file, metadata file, or directory with recognized layout.static Table
Reads in a table from a single parquet file, metadata file, or directory with recognized layout.static Table
readTable
(@NotNull String source, @NotNull ParquetInstructions readInstructions) Reads in a table from a single parquet file, metadata file, or directory with recognized layout.static void
setDefaultCompressionCodecName
(String compressionCodecName) Deprecated.Do not use this method, instead pass the above codecs as arguments towriteTable(Table, File, ParquetInstructions)
methodstatic void
writeParquetTables
(@NotNull Table[] sources, @NotNull TableDefinition definition, @NotNull ParquetInstructions writeInstructions, @NotNull File[] destinations, @NotNull String[] groupingColumns) Writes tables to disk in parquet format to a supplied set of destinations.static void
writeTable
(@NotNull Table sourceTable, @NotNull File destFile) Write a table to a file.static void
writeTable
(@NotNull Table sourceTable, @NotNull File destFile, @NotNull TableDefinition definition) Write a table to a file.static void
writeTable
(@NotNull Table sourceTable, @NotNull File destFile, @NotNull TableDefinition definition, @NotNull ParquetInstructions writeInstructions) Write a table to a file.static void
writeTable
(@NotNull Table sourceTable, @NotNull File destFile, @NotNull ParquetInstructions writeInstructions) Write a table to a file.static void
writeTable
(@NotNull Table sourceTable, @NotNull String destPath) Write a table to a file.static void
writeTable
(@NotNull Table sourceTable, @NotNull String destPath, @NotNull TableDefinition definition, @NotNull ParquetInstructions writeInstructions) Write a table to a file.static void
writeTables
(@NotNull Table[] sources, @NotNull TableDefinition definition, @NotNull File[] destinations) Write out tables to disk.static void
writeTables
(@NotNull Table[] sources, @NotNull TableDefinition definition, @NotNull File[] destinations, @NotNull ParquetInstructions writeInstructions) Write out tables to disk.
-
Field Details
-
UNCOMPRESSED
-
LZ4
Deprecated.Use LZ4_RAW instead, as explained here -
LZ4_RAW
-
LZO
-
GZIP
-
ZSTD
-
SNAPPY
-
BROTLI
-
LEGACY
-
-
Method Details
-
readTable
Reads in a table from a single parquet file, metadata file, or directory with recognized layout. The source provided can be a local file path or a URI to be resolved via the providedSeekableChannelsProviderPlugin
.This method attempts to "do the right thing." It examines the source to determine if it's a single parquet file, a metadata file, or a directory. If it's a directory, it additionally tries to guess the layout to use. Unless a metadata file is supplied or discovered in the directory, the highest (by
location key
order) location found will be used to infer schema.Delegates to one of
readSingleFileTable(String, ParquetInstructions)
,readSingleFileTable(File, ParquetInstructions)
,readPartitionedTableWithMetadata(File, ParquetInstructions)
,readFlatPartitionedTable(File, ParquetInstructions)
, orreadKeyValuePartitionedTable(File, ParquetInstructions)
.- Parameters:
source
- The path or URI of file or directory to examine- Returns:
- table
- See Also:
-
readTable
public static Table readTable(@NotNull @NotNull String source, @NotNull @NotNull ParquetInstructions readInstructions) Reads in a table from a single parquet file, metadata file, or directory with recognized layout. The source provided can be a local file path or a URI to be resolved via the providedSeekableChannelsProviderPlugin
.This method attempts to "do the right thing." It examines the source to determine if it's a single parquet file, a metadata file, or a directory. If it's a directory, it additionally tries to guess the layout to use. Unless a metadata file is supplied or discovered in the directory, the highest (by
location key
order) location found will be used to infer schema.Delegates to one of
readSingleFileTable(File, ParquetInstructions)
,readPartitionedTableWithMetadata(File, ParquetInstructions)
,readFlatPartitionedTable(File, ParquetInstructions)
, orreadKeyValuePartitionedTable(File, ParquetInstructions)
.- Parameters:
source
- The path or URI of file or directory to examinereadInstructions
- Instructions for customizations while reading- Returns:
- table
- See Also:
-
readTable
Reads in a table from a single parquet file, metadata file, or directory with recognized layout.This method attempts to "do the right thing." It examines the source to determine if it's a single parquet file, a metadata file, or a directory. If it's a directory, it additionally tries to guess the layout to use. Unless a metadata file is supplied or discovered in the directory, the highest (by
location key
order) location found will be used to infer schema.Delegates to one of
readSingleFileTable(File, ParquetInstructions)
,readPartitionedTableWithMetadata(File, ParquetInstructions)
,readFlatPartitionedTable(File, ParquetInstructions)
, orreadKeyValuePartitionedTable(File, ParquetInstructions)
.- Parameters:
sourceFile
- The file or directory to examine- Returns:
- table
- See Also:
-
readTable
public static Table readTable(@NotNull @NotNull File sourceFile, @NotNull @NotNull ParquetInstructions readInstructions) Reads in a table from a single parquet file, metadata file, or directory with recognized layout.This method attempts to "do the right thing." It examines the source to determine if it's a single parquet file, a metadata file, or a directory. If it's a directory, it additionally tries to guess the layout to use. Unless a metadata file is supplied or discovered in the directory, the highest (by
location key
order) location found will be used to infer schema.Delegates to one of
readSingleFileTable(File, ParquetInstructions)
,readPartitionedTableWithMetadata(File, ParquetInstructions)
,readFlatPartitionedTable(File, ParquetInstructions)
, orreadKeyValuePartitionedTable(File, ParquetInstructions)
.- Parameters:
sourceFile
- The file or directory to examinereadInstructions
- Instructions for customizations while reading- Returns:
- table
- See Also:
-
writeTable
public static void writeTable(@NotNull @NotNull Table sourceTable, @NotNull @NotNull String destPath) Write a table to a file.- Parameters:
sourceTable
- source tabledestPath
- destination file path; the file name should end in ".parquet" extension If the path includes non-existing directories they are created If there is an error any intermediate directories previously created are removed; note this makes this method unsafe for concurrent use
-
writeTable
Write a table to a file.- Parameters:
sourceTable
- source tabledestFile
- destination file; the file name should end in ".parquet" extension If the path includes non-existing directories they are created
-
writeTable
public static void writeTable(@NotNull @NotNull Table sourceTable, @NotNull @NotNull File destFile, @NotNull @NotNull TableDefinition definition) Write a table to a file.- Parameters:
sourceTable
- source tabledestFile
- destination file; its path must end in ".parquet". Any non existing directories in the path are created If there is an error any intermediate directories previously created are removed; note this makes this method unsafe for concurrent usedefinition
- table definition to use (instead of the one implied by the table itself)
-
writeTable
public static void writeTable(@NotNull @NotNull Table sourceTable, @NotNull @NotNull File destFile, @NotNull @NotNull ParquetInstructions writeInstructions) Write a table to a file.- Parameters:
sourceTable
- source tabledestFile
- destination file; its path must end in ".parquet". Any non existing directories in the path are created If there is an error any intermediate directories previously created are removed; note this makes this method unsafe for concurrent usewriteInstructions
- instructions for customizations while writing
-
writeTable
public static void writeTable(@NotNull @NotNull Table sourceTable, @NotNull @NotNull String destPath, @NotNull @NotNull TableDefinition definition, @NotNull @NotNull ParquetInstructions writeInstructions) Write a table to a file.- Parameters:
sourceTable
- source tabledestPath
- destination path; it must end in ".parquet". Any non existing directories in the path are created If there is an error any intermediate directories previously created are removed; note this makes this method unsafe for concurrent usedefinition
- table definition to use (instead of the one implied by the table itself)writeInstructions
- instructions for customizations while writing
-
writeTable
public static void writeTable(@NotNull @NotNull Table sourceTable, @NotNull @NotNull File destFile, @NotNull @NotNull TableDefinition definition, @NotNull @NotNull ParquetInstructions writeInstructions) Write a table to a file.- Parameters:
sourceTable
- source tabledestFile
- destination file; its path must end in ".parquet". Any non-existing directories in the path are created If there is an error any intermediate directories previously created are removed; note this makes this method unsafe for concurrent usedefinition
- table definition to use (instead of the one implied by the table itself)writeInstructions
- instructions for customizations while writing
-
getRelativeIndexFilePath
public static String getRelativeIndexFilePath(@NotNull @NotNull File tableDest, @NotNull @NotNull String columnName) Generates the index file path relative to the table destination file path.- Parameters:
tableDest
- Destination path for the main table containing these indexing columnscolumnName
- Name of the indexing column- Returns:
- The relative index file path. For example, for table with destination
"table.parquet"
and indexing column"IndexingColName"
, the method will return".dh_metadata/indexes/IndexingColName/index_IndexingColName_table.parquet"
-
legacyGroupingFileName
public static String legacyGroupingFileName(@NotNull @NotNull File tableDest, @NotNull @NotNull String columnName) Legacy method for generating a grouping file name. We used to place grouping files right next to the original table destination.- Parameters:
tableDest
- Destination path for the main table containing these grouping columnscolumnName
- Name of the grouping column- Returns:
- The relative grouping file path. For example, for table with destination
"table.parquet"
and grouping column"GroupingColName"
, the method will return"table_GroupingColName_grouping.parquet"
-
writeParquetTables
public static void writeParquetTables(@NotNull @NotNull Table[] sources, @NotNull @NotNull TableDefinition definition, @NotNull @NotNull ParquetInstructions writeInstructions, @NotNull @NotNull File[] destinations, @NotNull @NotNull String[] groupingColumns) Writes tables to disk in parquet format to a supplied set of destinations. If you specify grouping columns, there must already be grouping information for those columns in the sources. This can be accomplished with.groupBy(<grouping columns>).ungroup()
or.sort(<grouping column>)
.- Parameters:
sources
- The tables to writedefinition
- The common schema for all the tables to writewriteInstructions
- Write instructions for customizations while writingdestinations
- The destinations paths. Any non-existing directories in the paths provided are created. If there is an error any intermediate directories previously created are removed; note this makes this method unsafe for concurrent usegroupingColumns
- List of columns the tables are grouped by (the write operation will store the grouping info)
-
writeTables
public static void writeTables(@NotNull @NotNull Table[] sources, @NotNull @NotNull TableDefinition definition, @NotNull @NotNull File[] destinations) Write out tables to disk.- Parameters:
sources
- source tablesdefinition
- table definitiondestinations
- destinations
-
writeTables
public static void writeTables(@NotNull @NotNull Table[] sources, @NotNull @NotNull TableDefinition definition, @NotNull @NotNull File[] destinations, @NotNull @NotNull ParquetInstructions writeInstructions) Write out tables to disk.- Parameters:
sources
- source tablesdefinition
- table definitiondestinations
- destinationswriteInstructions
- instructions for customizations while writing
-
deleteTable
Deletes a table on disk.- Parameters:
path
- path to delete
-
readSingleFileTable
public static Table readSingleFileTable(@NotNull @NotNull ParquetTableLocationKey tableLocationKey, @NotNull @NotNull ParquetInstructions readInstructions, @NotNull @NotNull TableDefinition tableDefinition) Reads in a table from a single parquet file using the provided table definition.Callers may prefer the simpler methods
readSingleFileTable(File, ParquetInstructions)
orreadSingleFileTable(File, ParquetInstructions, TableDefinition)
.- Parameters:
tableLocationKey
- Thelocation keys
to includereadInstructions
- Instructions for customizations while readingtableDefinition
- The table'sdefinition
- Returns:
- The table
-
readPartitionedTable
public static Table readPartitionedTable(@NotNull @NotNull TableLocationKeyFinder<ParquetTableLocationKey> locationKeyFinder, @NotNull @NotNull ParquetInstructions readInstructions) Reads in a table from files discovered withlocationKeyFinder
using a definition built from the highest (bylocation key
order) location found, which must have non-null partition values for all partition keys.- Parameters:
locationKeyFinder
- The source oflocation keys
to includereadInstructions
- Instructions for customizations while reading- Returns:
- The table
-
readPartitionedTable
public static Table readPartitionedTable(@NotNull @NotNull TableLocationKeyFinder<ParquetTableLocationKey> locationKeyFinder, @NotNull @NotNull ParquetInstructions readInstructions, @NotNull @NotNull TableDefinition tableDefinition) Reads in a table from files discovered withlocationKeyFinder
using the provided table definition.- Parameters:
locationKeyFinder
- The source oflocation keys
to includereadInstructions
- Instructions for customizations while readingtableDefinition
- The table'sdefinition
- Returns:
- The table
-
readPartitionedTableInferSchema
@Deprecated public static Table readPartitionedTableInferSchema(@NotNull @NotNull TableLocationKeyFinder<ParquetTableLocationKey> locationKeyFinder, @NotNull @NotNull ParquetInstructions readInstructions) Reads in a table from files discovered withlocationKeyFinder
using a definition built from the highest (bylocation key
order) location found, which must have non-null partition values for all partition keys.- Parameters:
locationKeyFinder
- The source oflocation keys
to includereadInstructions
- Instructions for customizations while reading- Returns:
- The table
-
readPartitionedTableWithMetadata
public static Table readPartitionedTableWithMetadata(@NotNull @NotNull File directory, @NotNull @NotNull ParquetInstructions readInstructions) Reads in a table using metadata files found in the supplied directory.- Parameters:
directory
- The source oflocation keys
to includereadInstructions
- Instructions for customizations while reading- Returns:
- The table
-
readKeyValuePartitionedTable
public static Table readKeyValuePartitionedTable(@NotNull @NotNull File directory, @NotNull @NotNull ParquetInstructions readInstructions) Creates a partitioned table via the key-value partitioned parquet files from the rootdirectory
, inferring the table definition from those files.Callers wishing to be more explicit and skip the inference step may prefer to call
readKeyValuePartitionedTable(File, ParquetInstructions, TableDefinition)
.- Parameters:
directory
- the source oflocation keys
to includereadInstructions
- the instructions for customizations while reading- Returns:
- the table
- See Also:
-
readKeyValuePartitionedTable
public static Table readKeyValuePartitionedTable(@NotNull @NotNull File directory, @NotNull @NotNull ParquetInstructions readInstructions, @NotNull @NotNull TableDefinition tableDefinition) Creates a partitioned table via the key-value partitioned parquet files from the rootdirectory
using the providedtableDefinition
.- Parameters:
directory
- the source oflocation keys
to includereadInstructions
- the instructions for customizations while readingtableDefinition
- the table definition- Returns:
- the table
- See Also:
-
readFlatPartitionedTable
public static Table readFlatPartitionedTable(@NotNull @NotNull File directory, @NotNull @NotNull ParquetInstructions readInstructions) Creates a partitioned table via the flat parquet files from the rootdirectory
, inferring the table definition from those files.Callers wishing to be more explicit and skip the inference step may prefer to call
readFlatPartitionedTable(File, ParquetInstructions, TableDefinition)
.- Parameters:
directory
- the source oflocation keys
to includereadInstructions
- the instructions for customizations while reading- Returns:
- the table
- See Also:
-
readFlatPartitionedTable
public static Table readFlatPartitionedTable(@NotNull @NotNull File directory, @NotNull @NotNull ParquetInstructions readInstructions, @NotNull @NotNull TableDefinition tableDefinition) Creates a partitioned table via the flat parquet files from the rootdirectory
using the providedtableDefinition
.- Parameters:
directory
- the source oflocation keys
to includereadInstructions
- the instructions for customizations while readingtableDefinition
- the table definition- Returns:
- the table
- See Also:
-
readSingleFileTable
public static Table readSingleFileTable(@NotNull @NotNull File file, @NotNull @NotNull ParquetInstructions readInstructions) Creates a single table via the parquetfile
using the table definition derived from thatfile
.Callers wishing to be more explicit (for example, to skip some columns) may prefer to call
readSingleFileTable(File, ParquetInstructions, TableDefinition)
.- Parameters:
file
- the parquet filereadInstructions
- the instructions for customizations while reading- Returns:
- the table
- See Also:
-
readSingleFileTable
public static Table readSingleFileTable(@NotNull @NotNull String source, @NotNull @NotNull ParquetInstructions readInstructions) Creates a single table via the parquetsource
using the providedtableDefinition
. The source provided can be a local file path or a URI to be resolved via the providedSeekableChannelsProviderPlugin
Callers wishing to be more explicit (for example, to skip some columns) may prefer to call
readSingleFileTable(String, ParquetInstructions, TableDefinition)
.- Parameters:
source
- the path or URI for the parquet filereadInstructions
- the instructions for customizations while reading- Returns:
- the table
- See Also:
-
readSingleFileTable
public static Table readSingleFileTable(@NotNull @NotNull File file, @NotNull @NotNull ParquetInstructions readInstructions, @NotNull @NotNull TableDefinition tableDefinition) Creates a single table via the parquetfile
using the providedtableDefinition
.- Parameters:
file
- the parquet filereadInstructions
- the instructions for customizations while readingtableDefinition
- the table definition- Returns:
- the table
- See Also:
-
readSingleFileTable
public static Table readSingleFileTable(@NotNull @NotNull String source, @NotNull @NotNull ParquetInstructions readInstructions, @NotNull @NotNull TableDefinition tableDefinition) Creates a single table via the parquetsource
using the providedtableDefinition
. The source provided can be a local file path or a URI to be resolved via the providedSeekableChannelsProviderPlugin
- Parameters:
source
- the path or URI for the parquet filereadInstructions
- the instructions for customizations while readingtableDefinition
- the table definition- Returns:
- the table
- See Also:
-
getParquetFileReader
public static ParquetFileReader getParquetFileReader(@NotNull @NotNull File parquetFile, @NotNull @NotNull ParquetInstructions readInstructions) - Parameters:
parquetFile
- TheFile
to readreadInstructions
- the instructions for customizations while reading- Returns:
- The new
ParquetFileReader
-
getParquetFileReader
public static ParquetFileReader getParquetFileReader(@NotNull @NotNull URI parquetFileURI, @NotNull @NotNull ParquetInstructions readInstructions) - Parameters:
parquetFileURI
- TheURI
to readreadInstructions
- the instructions for customizations while reading- Returns:
- The new
ParquetFileReader
-
getParquetFileReaderChecked
public static ParquetFileReader getParquetFileReaderChecked(@NotNull @NotNull File parquetFile, @NotNull @NotNull ParquetInstructions readInstructions) throws IOException Make aParquetFileReader
for the suppliedFile
.- Parameters:
parquetFile
- TheFile
to read- Returns:
- The new
ParquetFileReader
- Throws:
IOException
- if an IO exception occurs
-
getParquetFileReaderChecked
public static ParquetFileReader getParquetFileReaderChecked(@NotNull @NotNull URI parquetFileURI, @NotNull @NotNull ParquetInstructions readInstructions) throws IOException Make aParquetFileReader
for the suppliedURI
.- Parameters:
parquetFileURI
- TheURI
to read- Returns:
- The new
ParquetFileReader
- Throws:
IOException
- if an IO exception occurs
-
readParquetSchemaAndTable
@VisibleForTesting public static Table readParquetSchemaAndTable(@NotNull @NotNull File source, @NotNull @NotNull ParquetInstructions readInstructionsIn, org.apache.commons.lang3.mutable.MutableObject<ParquetInstructions> instructionsOut) -
convertSchema
public static Pair<List<ColumnDefinition<?>>,ParquetInstructions> convertSchema(@NotNull @NotNull org.apache.parquet.schema.MessageType schema, @NotNull @NotNull Map<String, String> keyValueMetadata, @NotNull @NotNull ParquetInstructions readInstructionsIn) Convert schema information from aParquetMetadata
intoColumnDefinitions
.- Parameters:
schema
- Parquet schema. DO NOT RELY ONParquetMetadataConverter
FOR THIS! USEParquetFileReader
!keyValueMetadata
- Parquet key-value metadata mapreadInstructionsIn
- Input conversionParquetInstructions
- Returns:
- A
Pair
withColumnDefinitions
and adjustedParquetInstructions
-
setDefaultCompressionCodecName
Deprecated.Do not use this method, instead pass the above codecs as arguments towriteTable(Table, File, ParquetInstructions)
method
-