Class RewriteOptions
- java.lang.Object
-
- org.apache.parquet.hadoop.rewrite.RewriteOptions
-
public class RewriteOptions extends Object
A set of options to create aParquetRewriter. SeeRewriteOptions.Builderfor options description.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRewriteOptions.BuilderBuilder forRewriteOptionswhich is used for constructingParquetRewriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.hadoop.conf.ConfigurationgetConf()Gets theConfigurationpart of the rewrite options.List<String>getEncryptColumns()FileEncryptionPropertiesgetFileEncryptionProperties()booleangetIgnoreJoinFilesMetadata()IndexCache.CacheStrategygetIndexCacheStrategy()List<org.apache.hadoop.fs.Path>getInputFiles()Gets the inputPaths for the rewrite if they exist for all input files, otherwise throws aRuntimeException.List<org.apache.hadoop.fs.Path>getInputFilesToJoin()Gets the inputPaths for the rewrite if they exist for all input files to join, otherwise throws aRuntimeException.Map<String,MaskMode>getMaskColumns()CompressionCodecNamegetNewCodecName()org.apache.hadoop.fs.PathgetOutputFile()Get thePathfor the rewrite if it exists, otherwise throws aRuntimeException.booleangetOverwriteInputWithJoinColumns()ParquetConfigurationgetParquetConfiguration()Gets theParquetConfigurationpart of the rewrite options.List<InputFile>getParquetInputFiles()Gets theInputFiles for the rewrite.List<InputFile>getParquetInputFilesToJoin()Gets the rightInputFiles to join during the rewrite.OutputFilegetParquetOutputFile()Get theOutputFilefor the rewrite.List<String>getPruneColumns()Map<String,String>getRenameColumns()
-
-
-
Method Detail
-
getConf
public org.apache.hadoop.conf.Configuration getConf()
Gets theConfigurationpart of the rewrite options.- Returns:
- the associated
Configuration
-
getParquetConfiguration
public ParquetConfiguration getParquetConfiguration()
Gets theParquetConfigurationpart of the rewrite options.- Returns:
- the associated
ParquetConfiguration
-
getInputFiles
public List<org.apache.hadoop.fs.Path> getInputFiles()
Gets the inputPaths for the rewrite if they exist for all input files, otherwise throws aRuntimeException.- Returns:
- a
Listof the associated inputPaths
-
getInputFilesToJoin
public List<org.apache.hadoop.fs.Path> 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
public List<InputFile> getParquetInputFiles()
Gets theInputFiles for the rewrite.
-
getParquetInputFilesToJoin
public List<InputFile> getParquetInputFilesToJoin()
Gets the rightInputFiles to join during the rewrite.
-
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 OutputFile getParquetOutputFile()
Get theOutputFilefor the rewrite.- Returns:
- the associated
OutputFile
-
getNewCodecName
public CompressionCodecName getNewCodecName()
-
getFileEncryptionProperties
public FileEncryptionProperties getFileEncryptionProperties()
-
getIndexCacheStrategy
public IndexCache.CacheStrategy getIndexCacheStrategy()
-
getOverwriteInputWithJoinColumns
public boolean getOverwriteInputWithJoinColumns()
-
getIgnoreJoinFilesMetadata
public boolean getIgnoreJoinFilesMetadata()
-
-