Class RewriteOptions

java.lang.Object
org.apache.parquet.hadoop.rewrite.RewriteOptions

public class RewriteOptions extends Object
A set of options to create a ParquetRewriter. See RewriteOptions.Builder for options description.
  • Method Details

    • getConf

      public org.apache.hadoop.conf.Configuration getConf()
      Gets the Configuration part of the rewrite options.
      Returns:
      the associated Configuration
    • getParquetConfiguration

      public org.apache.parquet.conf.ParquetConfiguration getParquetConfiguration()
      Gets the ParquetConfiguration part of the rewrite options.
      Returns:
      the associated ParquetConfiguration
    • getInputFiles

      public List<org.apache.hadoop.fs.Path> getInputFiles()
      Gets the input Paths for the rewrite if they exist for all input files, otherwise throws a RuntimeException.
      Returns:
      a List of the associated input Paths
    • getInputFilesToJoin

      public List<org.apache.hadoop.fs.Path> getInputFilesToJoin()
      Gets the input Paths for the rewrite if they exist for all input files to join, otherwise throws a RuntimeException.
      Returns:
      a List of the associated input Paths to join
    • getParquetInputFiles

      public List<org.apache.parquet.io.InputFile> getParquetInputFiles()
      Gets the InputFiles for the rewrite.
      Returns:
      a List of the associated InputFiles
    • getParquetInputFilesToJoin

      public List<org.apache.parquet.io.InputFile> getParquetInputFilesToJoin()
      Gets the right InputFiles to join during the rewrite.
      Returns:
      a List of the associated InputFiles to join
    • getOutputFile

      public org.apache.hadoop.fs.Path getOutputFile()
      Get the Path for the rewrite if it exists, otherwise throws a RuntimeException.
      Returns:
      the associated Path if it exists
    • getParquetOutputFile

      public org.apache.parquet.io.OutputFile getParquetOutputFile()
      Get the OutputFile for the rewrite.
      Returns:
      the associated OutputFile
    • getPruneColumns

      public List<String> getPruneColumns()
    • getNewCodecName

      public org.apache.parquet.hadoop.metadata.CompressionCodecName getNewCodecName()
    • getMaskColumns

      public Map<String,MaskMode> getMaskColumns()
    • getRenameColumns

      public Map<String,String> getRenameColumns()
    • getEncryptColumns

      public List<String> getEncryptColumns()
    • getFileEncryptionProperties

      public FileEncryptionProperties getFileEncryptionProperties()
    • getIndexCacheStrategy

      public IndexCache.CacheStrategy getIndexCacheStrategy()
    • getOverwriteInputWithJoinColumns

      public boolean getOverwriteInputWithJoinColumns()
    • getIgnoreJoinFilesMetadata

      public boolean getIgnoreJoinFilesMetadata()