Class HadoopParquetConfiguration

java.lang.Object
org.apache.parquet.conf.HadoopParquetConfiguration
All Implemented Interfaces:
Iterable<Map.Entry<String,String>>, org.apache.parquet.conf.ParquetConfiguration

public class HadoopParquetConfiguration extends Object implements org.apache.parquet.conf.ParquetConfiguration
Implementation of the Parquet configuration interface relying on Hadoop's Configuration to aid with interoperability and backwards compatibility.
  • Constructor Details

    • HadoopParquetConfiguration

      public HadoopParquetConfiguration()
    • HadoopParquetConfiguration

      public HadoopParquetConfiguration(boolean loadDefaults)
    • HadoopParquetConfiguration

      public HadoopParquetConfiguration(org.apache.hadoop.conf.Configuration conf)
  • Method Details

    • getConfiguration

      public org.apache.hadoop.conf.Configuration getConfiguration()
    • set

      public void set(String name, String value)
      Specified by:
      set in interface org.apache.parquet.conf.ParquetConfiguration
    • setLong

      public void setLong(String name, long value)
      Specified by:
      setLong in interface org.apache.parquet.conf.ParquetConfiguration
    • setInt

      public void setInt(String name, int value)
      Specified by:
      setInt in interface org.apache.parquet.conf.ParquetConfiguration
    • setBoolean

      public void setBoolean(String name, boolean value)
      Specified by:
      setBoolean in interface org.apache.parquet.conf.ParquetConfiguration
    • setStrings

      public void setStrings(String name, String... values)
      Specified by:
      setStrings in interface org.apache.parquet.conf.ParquetConfiguration
    • setClass

      public void setClass(String name, Class<?> value, Class<?> xface)
      Specified by:
      setClass in interface org.apache.parquet.conf.ParquetConfiguration
    • get

      public String get(String name)
      Specified by:
      get in interface org.apache.parquet.conf.ParquetConfiguration
    • get

      public String get(String name, String defaultValue)
      Specified by:
      get in interface org.apache.parquet.conf.ParquetConfiguration
    • getLong

      public long getLong(String name, long defaultValue)
      Specified by:
      getLong in interface org.apache.parquet.conf.ParquetConfiguration
    • getInt

      public int getInt(String name, int defaultValue)
      Specified by:
      getInt in interface org.apache.parquet.conf.ParquetConfiguration
    • getBoolean

      public boolean getBoolean(String name, boolean defaultValue)
      Specified by:
      getBoolean in interface org.apache.parquet.conf.ParquetConfiguration
    • getTrimmed

      public String getTrimmed(String name)
      Specified by:
      getTrimmed in interface org.apache.parquet.conf.ParquetConfiguration
    • getTrimmed

      public String getTrimmed(String name, String defaultValue)
      Specified by:
      getTrimmed in interface org.apache.parquet.conf.ParquetConfiguration
    • getStrings

      public String[] getStrings(String name, String[] defaultValue)
      Specified by:
      getStrings in interface org.apache.parquet.conf.ParquetConfiguration
    • getClass

      public Class<?> getClass(String name, Class<?> defaultValue)
      Specified by:
      getClass in interface org.apache.parquet.conf.ParquetConfiguration
    • getClass

      public <U> Class<? extends U> getClass(String name, Class<? extends U> defaultValue, Class<U> xface)
      Specified by:
      getClass in interface org.apache.parquet.conf.ParquetConfiguration
    • getClassByName

      public Class<?> getClassByName(String name) throws ClassNotFoundException
      Specified by:
      getClassByName in interface org.apache.parquet.conf.ParquetConfiguration
      Throws:
      ClassNotFoundException
    • iterator

      public Iterator<Map.Entry<String,String>> iterator()
      Specified by:
      iterator in interface Iterable<Map.Entry<String,String>>