Package org.apache.parquet.conf
Class HadoopParquetConfiguration
- java.lang.Object
-
- org.apache.parquet.conf.HadoopParquetConfiguration
-
- All Implemented Interfaces:
Iterable<Map.Entry<String,String>>,ParquetConfiguration
public class HadoopParquetConfiguration extends Object implements ParquetConfiguration
Implementation of the Parquet configuration interface relying on Hadoop's Configuration to aid with interoperability and backwards compatibility.
-
-
Constructor Summary
Constructors Constructor Description HadoopParquetConfiguration()HadoopParquetConfiguration(boolean loadDefaults)HadoopParquetConfiguration(org.apache.hadoop.conf.Configuration conf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringget(String name)Stringget(String name, String defaultValue)booleangetBoolean(String name, boolean defaultValue)Class<?>getClass(String name, Class<?> defaultValue)<U> Class<? extends U>getClass(String name, Class<? extends U> defaultValue, Class<U> xface)Class<?>getClassByName(String name)org.apache.hadoop.conf.ConfigurationgetConfiguration()intgetInt(String name, int defaultValue)longgetLong(String name, long defaultValue)String[]getStrings(String name, String[] defaultValue)StringgetTrimmed(String name)StringgetTrimmed(String name, String defaultValue)Iterator<Map.Entry<String,String>>iterator()voidset(String name, String value)voidsetBoolean(String name, boolean value)voidsetClass(String name, Class<?> value, Class<?> xface)voidsetInt(String name, int value)voidsetLong(String name, long value)voidsetStrings(String name, String... values)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getConfiguration
public org.apache.hadoop.conf.Configuration getConfiguration()
-
set
public void set(String name, String value)
- Specified by:
setin interfaceParquetConfiguration
-
setLong
public void setLong(String name, long value)
- Specified by:
setLongin interfaceParquetConfiguration
-
setInt
public void setInt(String name, int value)
- Specified by:
setIntin interfaceParquetConfiguration
-
setBoolean
public void setBoolean(String name, boolean value)
- Specified by:
setBooleanin interfaceParquetConfiguration
-
setStrings
public void setStrings(String name, String... values)
- Specified by:
setStringsin interfaceParquetConfiguration
-
setClass
public void setClass(String name, Class<?> value, Class<?> xface)
- Specified by:
setClassin interfaceParquetConfiguration
-
get
public String get(String name)
- Specified by:
getin interfaceParquetConfiguration
-
get
public String get(String name, String defaultValue)
- Specified by:
getin interfaceParquetConfiguration
-
getLong
public long getLong(String name, long defaultValue)
- Specified by:
getLongin interfaceParquetConfiguration
-
getInt
public int getInt(String name, int defaultValue)
- Specified by:
getIntin interfaceParquetConfiguration
-
getBoolean
public boolean getBoolean(String name, boolean defaultValue)
- Specified by:
getBooleanin interfaceParquetConfiguration
-
getTrimmed
public String getTrimmed(String name)
- Specified by:
getTrimmedin interfaceParquetConfiguration
-
getTrimmed
public String getTrimmed(String name, String defaultValue)
- Specified by:
getTrimmedin interfaceParquetConfiguration
-
getStrings
public String[] getStrings(String name, String[] defaultValue)
- Specified by:
getStringsin interfaceParquetConfiguration
-
getClass
public Class<?> getClass(String name, Class<?> defaultValue)
- Specified by:
getClassin interfaceParquetConfiguration
-
getClass
public <U> Class<? extends U> getClass(String name, Class<? extends U> defaultValue, Class<U> xface)
- Specified by:
getClassin interfaceParquetConfiguration
-
getClassByName
public Class<?> getClassByName(String name) throws ClassNotFoundException
- Specified by:
getClassByNamein interfaceParquetConfiguration- Throws:
ClassNotFoundException
-
-