Class ParquetTools
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ParquetInstructionsstatic final ParquetInstructionsstatic final ParquetInstructionsstatic final ParquetInstructionsDeprecated.Use LZ4_RAW instead, as explained herestatic final ParquetInstructionsstatic final ParquetInstructionsstatic final ParquetInstructionsstatic final ParquetInstructionsstatic final ParquetInstructions -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddeleteTable(File path) Deletes a table on disk.static StringlegacyGroupingFileName(@NotNull File tableDest, @NotNull String columnName) Legacy method for generating a grouping file name.static TablereadFlatPartitionedTable(@NotNull File directory, @NotNull ParquetInstructions readInstructions) Deprecated.static TablereadFlatPartitionedTable(@NotNull File directory, @NotNull ParquetInstructions readInstructions, @NotNull TableDefinition tableDefinition) Deprecated.UsereadTable(String, ParquetInstructions)instead with layout provided asParquetInstructions.ParquetFileLayout.FLAT_PARTITIONEDusingParquetInstructions.Builder.setFileLayout(io.deephaven.parquet.table.ParquetInstructions.ParquetFileLayout)andTableDefinitionprovided throughParquetInstructions.Builder.setTableDefinition(io.deephaven.engine.table.TableDefinition).static TablereadKeyValuePartitionedTable(@NotNull File directory, @NotNull ParquetInstructions readInstructions) Deprecated.static TablereadKeyValuePartitionedTable(@NotNull File directory, @NotNull ParquetInstructions readInstructions, @NotNull TableDefinition tableDefinition) Deprecated.UsereadTable(String, ParquetInstructions)instead with layout provided asParquetInstructions.ParquetFileLayout.KV_PARTITIONEDusingParquetInstructions.Builder.setFileLayout(io.deephaven.parquet.table.ParquetInstructions.ParquetFileLayout)andTableDefinitionprovided throughParquetInstructions.Builder.setTableDefinition(io.deephaven.engine.table.TableDefinition).static TablereadParquetSchemaAndTable(@NotNull File source, @NotNull ParquetInstructions readInstructionsIn, @Nullable org.apache.commons.lang3.mutable.MutableObject<ParquetInstructions> mutableInstructionsOut) static TablereadPartitionedTable(@NotNull TableLocationKeyFinder<ParquetTableLocationKey> locationKeyFinder, @NotNull ParquetInstructions readInstructions) Deprecated.static TablereadPartitionedTable(@NotNull TableLocationKeyFinder<ParquetTableLocationKey> locationKeyFinder, @NotNull ParquetInstructions readInstructions, @NotNull TableDefinition tableDefinition) Deprecated.usereadTable(TableLocationKeyFinder, ParquetInstructions)instead with the table definition provided throughParquetInstructions.Builder.setTableDefinition(io.deephaven.engine.table.TableDefinition).static TablereadPartitionedTableInferSchema(@NotNull TableLocationKeyFinder<ParquetTableLocationKey> locationKeyFinder, @NotNull ParquetInstructions readInstructions) Deprecated.static TablereadPartitionedTableWithMetadata(@NotNull File directory, @NotNull ParquetInstructions readInstructions) Deprecated.static TablereadPartitionedTableWithMetadata(@NotNull String directory, @NotNull ParquetInstructions readInstructions) Deprecated.static TablereadSingleFileTable(@NotNull ParquetTableLocationKey tableLocationKey, @NotNull ParquetInstructions readInstructions) Deprecated.static TablereadSingleFileTable(@NotNull ParquetTableLocationKey tableLocationKey, @NotNull ParquetInstructions readInstructions, @NotNull TableDefinition tableDefinition) Deprecated.UsereadTable(String, ParquetInstructions)instead with layout provided asParquetInstructions.ParquetFileLayout.SINGLE_FILEusingParquetInstructions.Builder.setFileLayout(io.deephaven.parquet.table.ParquetInstructions.ParquetFileLayout)andTableDefinitionprovided throughParquetInstructions.Builder.setTableDefinition(io.deephaven.engine.table.TableDefinition)static TablereadSingleFileTable(@NotNull File file, @NotNull ParquetInstructions readInstructions) Deprecated.static TablereadSingleFileTable(@NotNull File file, @NotNull ParquetInstructions readInstructions, @NotNull TableDefinition tableDefinition) Deprecated.UsereadTable(String, ParquetInstructions)instead with layout provided asParquetInstructions.ParquetFileLayout.SINGLE_FILEusingParquetInstructions.Builder.setFileLayout(io.deephaven.parquet.table.ParquetInstructions.ParquetFileLayout)andTableDefinitionprovided throughParquetInstructions.Builder.setTableDefinition(io.deephaven.engine.table.TableDefinition).static TablereadSingleFileTable(@NotNull String source, @NotNull ParquetInstructions readInstructions) Deprecated.static TablereadSingleFileTable(@NotNull String source, @NotNull ParquetInstructions readInstructions, @NotNull TableDefinition tableDefinition) Deprecated.UsereadTable(String, ParquetInstructions)instead with layout provided asParquetInstructions.ParquetFileLayout.SINGLE_FILEusingParquetInstructions.Builder.setFileLayout(io.deephaven.parquet.table.ParquetInstructions.ParquetFileLayout)andTableDefinitionprovided throughParquetInstructions.Builder.setTableDefinition(io.deephaven.engine.table.TableDefinition).static TablereadTable(@NotNull TableLocationKeyFinder<ParquetTableLocationKey> locationKeyFinder, @NotNull ParquetInstructions readInstructions) Reads in a table from files discovered withlocationKeyFinderusing a definition either provided usingParquetInstructionsor built from the highest (bylocation keyorder) location found, which must have non-null partition values for all partition keys.static TableDeprecated.UsereadTable(String)instead.static TablereadTable(@NotNull File sourceFile, @NotNull ParquetInstructions readInstructions) Deprecated.UsereadTable(String, ParquetInstructions)instead.static TableReads in a table from a single parquet file, metadata file, or directory with recognized layout.static TablereadTable(@NotNull String source, @NotNull ParquetInstructions readInstructions) Reads in a table from a single parquet file, metadata file, or directory with recognized layout.static voidsetDefaultCompressionCodecName(String compressionCodecName) Deprecated.Do not use this method, instead pass the above codecs as arguments towriteTable(Table, String, ParquetInstructions)methodstatic voidwriteKeyValuePartitionedTable(@NotNull PartitionedTable partitionedTable, @NotNull String destinationDir, @NotNull ParquetInstructions writeInstructions) Write a partitioned table to disk in parquet format with all thekey columnsas "key=value" format in a nested directory structure.static voidwriteKeyValuePartitionedTable(@NotNull Table sourceTable, @NotNull String destinationDir, @NotNull ParquetInstructions writeInstructions) Write table to disk in parquet format withpartitioning columnswritten as "key=value" format in a nested directory structure.static voidwriteTable(@NotNull Table sourceTable, @NotNull File destFile) Deprecated.UsewriteTable(Table, String)instead.static voidwriteTable(@NotNull Table sourceTable, @NotNull File destFile, @NotNull TableDefinition definition) Deprecated.static voidwriteTable(@NotNull Table sourceTable, @NotNull File destFile, @NotNull TableDefinition definition, @NotNull ParquetInstructions writeInstructions) Deprecated.static voidwriteTable(@NotNull Table sourceTable, @NotNull File destFile, @NotNull ParquetInstructions writeInstructions) Deprecated.UsewriteTable(Table, String, ParquetInstructions)instead.static voidwriteTable(@NotNull Table sourceTable, @NotNull String destination) Write a table to a file.static voidwriteTable(@NotNull Table sourceTable, @NotNull String destination, @NotNull TableDefinition definition, @NotNull ParquetInstructions writeInstructions) Deprecated.static voidwriteTable(@NotNull Table sourceTable, @NotNull String destination, @NotNull ParquetInstructions writeInstructions) Write a table to a file.static voidwriteTables(@NotNull Table[] sources, @NotNull TableDefinition definition, @NotNull File[] destinations) Deprecated.static voidwriteTables(@NotNull Table[] sources, @NotNull TableDefinition definition, @NotNull File[] destinations, @NotNull ParquetInstructions writeInstructions) Deprecated.static voidwriteTables(@NotNull Table[] sources, @NotNull String[] 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 keyorder) location found will be used to infer schema.- 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.If the
ParquetInstructions.ParquetFileLayoutis not provided in theinstructions, 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 (bylocation keyorder) location found will be used to infer schema.- Parameters:
source- The path or URI of file or directory to examinereadInstructions- Instructions for customizations while reading- Returns:
- table
- See Also:
-
readTable
Deprecated.UsereadTable(String)instead.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 keyorder) location found will be used to infer schema.- Parameters:
sourceFile- The file or directory to examine- Returns:
- table
- See Also:
-
readTable
@Deprecated public static Table readTable(@NotNull @NotNull File sourceFile, @NotNull @NotNull ParquetInstructions readInstructions) Deprecated.UsereadTable(String, ParquetInstructions)instead.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 keyorder) 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 destination) Write a table to a file. Data indexes to write are determined by those present onsourceTable.- Parameters:
sourceTable- source tabledestination- destination path or URI; 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
@Deprecated public static void writeTable(@NotNull @NotNull Table sourceTable, @NotNull @NotNull File destFile) Deprecated.UsewriteTable(Table, String)instead.Write a table to a file. Data indexes to write are determined by those present onsourceTable.- 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
@Deprecated public static void writeTable(@NotNull @NotNull Table sourceTable, @NotNull @NotNull File destFile, @NotNull @NotNull TableDefinition definition) Deprecated.Write a table to a file. Data indexes to write are determined by those present onsourceTable.- 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
@Deprecated public static void writeTable(@NotNull @NotNull Table sourceTable, @NotNull @NotNull File destFile, @NotNull @NotNull ParquetInstructions writeInstructions) Deprecated.UsewriteTable(Table, String, ParquetInstructions)instead.Write a table to a file. Data indexes to write are determined by those present onsourceTable.- 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 destination, @NotNull @NotNull ParquetInstructions writeInstructions) Write a table to a file. Data indexes to write are determined by those present onsourceTable.- Parameters:
sourceTable- source tabledestination- destination path or URI; 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 usewriteInstructions- instructions for customizations while writing
-
writeTable
@Deprecated public static void writeTable(@NotNull @NotNull Table sourceTable, @NotNull @NotNull String destination, @NotNull @NotNull TableDefinition definition, @NotNull @NotNull ParquetInstructions writeInstructions) Deprecated.Write a table to a file. Data indexes to write are determined by those present onsourceTable.- Parameters:
sourceTable- source tabledestination- destination path or URI; 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 usedefinition- table definition to use (instead of the one implied by the table itself)writeInstructions- instructions for customizations while writing
-
writeTable
@Deprecated public static void writeTable(@NotNull @NotNull Table sourceTable, @NotNull @NotNull File destFile, @NotNull @NotNull TableDefinition definition, @NotNull @NotNull ParquetInstructions writeInstructions) Deprecated.Write a table to a file. Data indexes to write are determined by those present onsourceTable.- 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
-
legacyGroupingFileName
@VisibleForTesting 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"
-
writeKeyValuePartitionedTable
public static void writeKeyValuePartitionedTable(@NotNull @NotNull Table sourceTable, @NotNull @NotNull String destinationDir, @NotNull @NotNull ParquetInstructions writeInstructions) Write table to disk in parquet format withpartitioning columnswritten as "key=value" format in a nested directory structure. To generate these individual partitions, this method will callpartitionByon all the partitioning columns of provided table. The generated parquet files will have names of the format provided byParquetInstructions.baseNameForPartitionedParquetData(). By default, any indexing columns present on the source table will be written as sidecar tables. To write only a subset of the indexes or add additional indexes while writing, useParquetInstructions.Builder.addIndexColumns(java.lang.String...).- Parameters:
sourceTable- The table to partition and writedestinationDir- The path to destination root directory to store partitioned data in nested format. Non-existing directories are created.writeInstructions- Write instructions for customizations while writing
-
writeKeyValuePartitionedTable
public static void writeKeyValuePartitionedTable(@NotNull @NotNull PartitionedTable partitionedTable, @NotNull @NotNull String destinationDir, @NotNull @NotNull ParquetInstructions writeInstructions) Write a partitioned table to disk in parquet format with all thekey columnsas "key=value" format in a nested directory structure. To generate the partitioned table, users can callpartitionByon the required columns. The generated parquet files will have names of the format provided byParquetInstructions.baseNameForPartitionedParquetData(). By default, this method does not write any indexes as sidecar tables to disk. To write such indexes, useParquetInstructions.Builder.addIndexColumns(java.lang.String...).- Parameters:
partitionedTable- The partitioned table to writedestinationDir- The path to destination root directory to store partitioned data in nested format. Non-existing directories are created.writeInstructions- Write instructions for customizations while writing
-
writeTables
@Deprecated public static void writeTables(@NotNull @NotNull Table[] sources, @NotNull @NotNull TableDefinition definition, @NotNull @NotNull File[] destinations) Deprecated.Write out tables to disk. Data indexes to write are determined by those already present on the first source.- Parameters:
sources- source tablesdefinition- table definitiondestinations- destinations
-
writeTables
public static void writeTables(@NotNull @NotNull Table[] sources, @NotNull @NotNull String[] destinations, @NotNull @NotNull ParquetInstructions writeInstructions) Write out tables to disk. Data indexes to write are determined by those already present on the first source or those provided throughParquetInstructions.Builder.addIndexColumns(java.lang.String...). TheTableDefinitionto use for writing must be provided as part ofParquetInstructions.- Parameters:
sources- The tables to writedestinations- The destination paths or URIs. 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 use.writeInstructions- Write instructions for customizations while writing
-
writeTables
@Deprecated public static void writeTables(@NotNull @NotNull Table[] sources, @NotNull @NotNull TableDefinition definition, @NotNull @NotNull File[] destinations, @NotNull @NotNull ParquetInstructions writeInstructions) Deprecated.Write out tables to disk. Data indexes to write are determined by those already present on the first source.- Parameters:
sources- source tablesdefinition- table definitiondestinations- destinationswriteInstructions- instructions for customizations while writing
-
deleteTable
Deletes a table on disk.- Parameters:
path- path to delete
-
readSingleFileTable
@Deprecated public static Table readSingleFileTable(@NotNull @NotNull ParquetTableLocationKey tableLocationKey, @NotNull @NotNull ParquetInstructions readInstructions) Deprecated.Reads in a table from a single parquet file using the table definition provided through theParquetInstructions.- Parameters:
tableLocationKey- Thelocation keysto includereadInstructions- Instructions for customizations while reading- Returns:
- The table
-
readSingleFileTable
@Deprecated public static Table readSingleFileTable(@NotNull @NotNull ParquetTableLocationKey tableLocationKey, @NotNull @NotNull ParquetInstructions readInstructions, @NotNull @NotNull TableDefinition tableDefinition) Deprecated.UsereadTable(String, ParquetInstructions)instead with layout provided asParquetInstructions.ParquetFileLayout.SINGLE_FILEusingParquetInstructions.Builder.setFileLayout(io.deephaven.parquet.table.ParquetInstructions.ParquetFileLayout)andTableDefinitionprovided throughParquetInstructions.Builder.setTableDefinition(io.deephaven.engine.table.TableDefinition)Reads in a table from a single parquet file using the provided table definition.- Parameters:
tableLocationKey- Thelocation keysto includereadInstructions- Instructions for customizations while readingtableDefinition- The table'sdefinition- Returns:
- The table
-
readTable
public static Table readTable(@NotNull @NotNull TableLocationKeyFinder<ParquetTableLocationKey> locationKeyFinder, @NotNull @NotNull ParquetInstructions readInstructions) Reads in a table from files discovered withlocationKeyFinderusing a definition either provided usingParquetInstructionsor built from the highest (bylocation keyorder) location found, which must have non-null partition values for all partition keys.Callers may prefer the simpler methods
readTable(String, ParquetInstructions)with layout provided usingParquetInstructions.Builder.setFileLayout(io.deephaven.parquet.table.ParquetInstructions.ParquetFileLayout).- Parameters:
locationKeyFinder- The source oflocation keysto includereadInstructions- Instructions for customizations while reading- Returns:
- The table
-
readPartitionedTable
@Deprecated public static Table readPartitionedTable(@NotNull @NotNull TableLocationKeyFinder<ParquetTableLocationKey> locationKeyFinder, @NotNull @NotNull ParquetInstructions readInstructions) Deprecated.Reads in a table from files discovered withlocationKeyFinderusing a definition either provided usingParquetInstructionsor built from the highest (bylocation keyorder) location found, which must have non-null partition values for all partition keys.Callers may prefer the simpler methods
readTable(String, ParquetInstructions)with layout provided usingParquetInstructions.Builder.setFileLayout(io.deephaven.parquet.table.ParquetInstructions.ParquetFileLayout).- Parameters:
locationKeyFinder- The source oflocation keysto includereadInstructions- Instructions for customizations while reading- Returns:
- The table
-
readPartitionedTable
@Deprecated public static Table readPartitionedTable(@NotNull @NotNull TableLocationKeyFinder<ParquetTableLocationKey> locationKeyFinder, @NotNull @NotNull ParquetInstructions readInstructions, @NotNull @NotNull TableDefinition tableDefinition) Deprecated.usereadTable(TableLocationKeyFinder, ParquetInstructions)instead with the table definition provided throughParquetInstructions.Builder.setTableDefinition(io.deephaven.engine.table.TableDefinition).Reads in a table from files discovered withlocationKeyFinderusing the provided table definition.Callers may prefer the simpler methods
readTable(String, ParquetInstructions)with layout provided usingParquetInstructions.Builder.setFileLayout(io.deephaven.parquet.table.ParquetInstructions.ParquetFileLayout)andTableDefinitionprovided throughParquetInstructions.Builder.setTableDefinition(io.deephaven.engine.table.TableDefinition).- Parameters:
locationKeyFinder- The source oflocation keysto 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) Deprecated.Reads in a table from files discovered withlocationKeyFinderusing a definition built from the highest (bylocation keyorder) location found, which must have non-null partition values for all partition keys.Callers may prefer the simpler methods
readTable(String, ParquetInstructions)with layout provided usingParquetInstructions.Builder.setFileLayout(io.deephaven.parquet.table.ParquetInstructions.ParquetFileLayout).- Parameters:
locationKeyFinder- The source oflocation keysto includereadInstructions- Instructions for customizations while reading- Returns:
- The table
-
readPartitionedTableWithMetadata
@Deprecated public static Table readPartitionedTableWithMetadata(@NotNull @NotNull File directory, @NotNull @NotNull ParquetInstructions readInstructions) Deprecated.Reads in a table using metadata files found in the supplied directory.- Parameters:
directory- the path for the root directory to search for .parquet filesreadInstructions- Instructions for customizations while reading- Returns:
- The table
-
readPartitionedTableWithMetadata
@Deprecated public static Table readPartitionedTableWithMetadata(@NotNull @NotNull String directory, @NotNull @NotNull ParquetInstructions readInstructions) Deprecated.Reads in a table using metadata files found in the supplied directory.- Parameters:
directory- the path or URI for the root directory to search for .parquet filesreadInstructions- Instructions for customizations while reading- Returns:
- The table
-
readKeyValuePartitionedTable
@Deprecated public static Table readKeyValuePartitionedTable(@NotNull @NotNull File directory, @NotNull @NotNull ParquetInstructions readInstructions) Deprecated.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 root directory to search for .parquet filesreadInstructions- the instructions for customizations while reading- Returns:
- the table
-
readKeyValuePartitionedTable
@Deprecated public static Table readKeyValuePartitionedTable(@NotNull @NotNull File directory, @NotNull @NotNull ParquetInstructions readInstructions, @NotNull @NotNull TableDefinition tableDefinition) Deprecated.UsereadTable(String, ParquetInstructions)instead with layout provided asParquetInstructions.ParquetFileLayout.KV_PARTITIONEDusingParquetInstructions.Builder.setFileLayout(io.deephaven.parquet.table.ParquetInstructions.ParquetFileLayout)andTableDefinitionprovided throughParquetInstructions.Builder.setTableDefinition(io.deephaven.engine.table.TableDefinition).Creates a partitioned table via the key-value partitioned parquet files from the rootdirectoryusing the providedtableDefinition.- Parameters:
directory- the root directory to search for .parquet filesreadInstructions- the instructions for customizations while readingtableDefinition- the table definition- Returns:
- the table
-
readFlatPartitionedTable
@Deprecated public static Table readFlatPartitionedTable(@NotNull @NotNull File directory, @NotNull @NotNull ParquetInstructions readInstructions) Deprecated.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 directory to search for .parquet filesreadInstructions- the instructions for customizations while reading- Returns:
- the table
-
readFlatPartitionedTable
@Deprecated public static Table readFlatPartitionedTable(@NotNull @NotNull File directory, @NotNull @NotNull ParquetInstructions readInstructions, @NotNull @NotNull TableDefinition tableDefinition) Deprecated.UsereadTable(String, ParquetInstructions)instead with layout provided asParquetInstructions.ParquetFileLayout.FLAT_PARTITIONEDusingParquetInstructions.Builder.setFileLayout(io.deephaven.parquet.table.ParquetInstructions.ParquetFileLayout)andTableDefinitionprovided throughParquetInstructions.Builder.setTableDefinition(io.deephaven.engine.table.TableDefinition).Creates a partitioned table via the flat parquet files from the rootdirectoryusing the providedtableDefinition.- Parameters:
directory- the directory to search for .parquet filesreadInstructions- the instructions for customizations while readingtableDefinition- the table definition- Returns:
- the table
-
readSingleFileTable
@Deprecated public static Table readSingleFileTable(@NotNull @NotNull File file, @NotNull @NotNull ParquetInstructions readInstructions) Deprecated.Creates a single table via the parquetfileusing 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
-
readSingleFileTable
@Deprecated public static Table readSingleFileTable(@NotNull @NotNull String source, @NotNull @NotNull ParquetInstructions readInstructions) Deprecated.Creates a single table via the parquetsourceusing the providedtableDefinition. The source provided can be a local file path or a URI to be resolved via the providedSeekableChannelsProviderPluginCallers 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
-
readSingleFileTable
@Deprecated public static Table readSingleFileTable(@NotNull @NotNull File file, @NotNull @NotNull ParquetInstructions readInstructions, @NotNull @NotNull TableDefinition tableDefinition) Deprecated.UsereadTable(String, ParquetInstructions)instead with layout provided asParquetInstructions.ParquetFileLayout.SINGLE_FILEusingParquetInstructions.Builder.setFileLayout(io.deephaven.parquet.table.ParquetInstructions.ParquetFileLayout)andTableDefinitionprovided throughParquetInstructions.Builder.setTableDefinition(io.deephaven.engine.table.TableDefinition).Creates a single table via the parquetfileusing the providedtableDefinition.- Parameters:
file- the parquet filereadInstructions- the instructions for customizations while readingtableDefinition- the table definition- Returns:
- the table
-
readSingleFileTable
@Deprecated public static Table readSingleFileTable(@NotNull @NotNull String source, @NotNull @NotNull ParquetInstructions readInstructions, @NotNull @NotNull TableDefinition tableDefinition) Deprecated.UsereadTable(String, ParquetInstructions)instead with layout provided asParquetInstructions.ParquetFileLayout.SINGLE_FILEusingParquetInstructions.Builder.setFileLayout(io.deephaven.parquet.table.ParquetInstructions.ParquetFileLayout)andTableDefinitionprovided throughParquetInstructions.Builder.setTableDefinition(io.deephaven.engine.table.TableDefinition).Creates a single table via the parquetsourceusing 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
-
readParquetSchemaAndTable
@VisibleForTesting public static Table readParquetSchemaAndTable(@NotNull @NotNull File source, @NotNull @NotNull ParquetInstructions readInstructionsIn, @Nullable @Nullable org.apache.commons.lang3.mutable.MutableObject<ParquetInstructions> mutableInstructionsOut) -
setDefaultCompressionCodecName
Deprecated.Do not use this method, instead pass the above codecs as arguments towriteTable(Table, String, ParquetInstructions)method
-