Class RewriteOptions
java.lang.Object
org.apache.parquet.hadoop.rewrite.RewriteOptions
A set of options to create a
ParquetRewriter. See RewriteOptions.Builder for options description.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder forRewriteOptionswhich is used for constructingParquetRewriter. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.conf.ConfigurationgetConf()Gets theConfigurationpart of the rewrite options.booleanList<org.apache.hadoop.fs.Path>Gets the inputPaths for the rewrite if they exist for all input files, otherwise throws aRuntimeException.List<org.apache.hadoop.fs.Path>Gets the inputPaths for the rewrite if they exist for all input files to join, otherwise throws aRuntimeException.org.apache.parquet.hadoop.metadata.CompressionCodecNameorg.apache.hadoop.fs.PathGet thePathfor the rewrite if it exists, otherwise throws aRuntimeException.booleanorg.apache.parquet.conf.ParquetConfigurationGets theParquetConfigurationpart of the rewrite options.List<org.apache.parquet.io.InputFile>Gets theInputFiles for the rewrite.List<org.apache.parquet.io.InputFile>Gets the rightInputFiles to join during the rewrite.org.apache.parquet.io.OutputFileGet theOutputFilefor the rewrite.
-
Method Details
-
getConf
public org.apache.hadoop.conf.Configuration getConf()Gets theConfigurationpart of the rewrite options.- Returns:
- the associated
Configuration
-
getParquetConfiguration
public org.apache.parquet.conf.ParquetConfiguration getParquetConfiguration()Gets theParquetConfigurationpart of the rewrite options.- Returns:
- the associated
ParquetConfiguration
-
getInputFiles
Gets the inputPaths for the rewrite if they exist for all input files, otherwise throws aRuntimeException.- Returns:
- a
Listof the associated inputPaths
-
getInputFilesToJoin
Gets the inputPaths for the rewrite if they exist for all input files to join, otherwise throws aRuntimeException.- Returns:
- a
Listof the associated inputPaths to join
-
getParquetInputFiles
Gets theInputFiles for the rewrite.- Returns:
- a
Listof the associatedInputFiles
-
getParquetInputFilesToJoin
Gets the rightInputFiles to join during the rewrite.- Returns:
- a
Listof the associatedInputFiles to join
-
getOutputFile
public org.apache.hadoop.fs.Path getOutputFile()Get thePathfor the rewrite if it exists, otherwise throws aRuntimeException.- Returns:
- the associated
Pathif it exists
-
getParquetOutputFile
public org.apache.parquet.io.OutputFile getParquetOutputFile()Get theOutputFilefor the rewrite.- Returns:
- the associated
OutputFile
-
getPruneColumns
-
getNewCodecName
public org.apache.parquet.hadoop.metadata.CompressionCodecName getNewCodecName() -
getMaskColumns
-
getRenameColumns
-
getEncryptColumns
-
getFileEncryptionProperties
-
getIndexCacheStrategy
-
getOverwriteInputWithJoinColumns
public boolean getOverwriteInputWithJoinColumns() -
getIgnoreJoinFilesMetadata
public boolean getIgnoreJoinFilesMetadata()
-