Package org.apache.parquet.conf
Class PlainParquetConfiguration
java.lang.Object
org.apache.parquet.conf.PlainParquetConfiguration
- All Implemented Interfaces:
Iterable<Map.Entry<String,,String>> ParquetConfiguration
Configuration for Parquet without Hadoop dependency.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the name property.Gets the value of the name property.booleangetBoolean(String name, boolean defaultValue) Gets the value of the name property as a boolean.Class<?>Gets the value of the name property as a class.<U> Class<? extends U>Gets the value of the name property as a class implementing the xface interface.Class<?>getClassByName(String name) Load a class by name.intGets the value of the name property as an integer.longGets the value of the name property as a long.String[]getStrings(String name, String[] defaultValue) Gets the value of the name property as an array ofStrings.getTrimmed(String name) Gets the trimmed value of the name property.getTrimmed(String name, String defaultValue) Gets the trimmed value of the name property as a boolean.iterator()voidSets the value of the name property.voidsetBoolean(String name, boolean value) Sets the value of the name property to a boolean.voidSets the value of the name property to a class.voidSets the value of the name property to an integer.voidSets the value of the name property to a long.voidsetStrings(String name, String... value) Sets the value of the name property to an array of comma delimited values.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
PlainParquetConfiguration
public PlainParquetConfiguration() -
PlainParquetConfiguration
-
-
Method Details
-
set
Description copied from interface:ParquetConfigurationSets the value of the name property.- Specified by:
setin interfaceParquetConfiguration- Parameters:
s- the property to sets1- the value to set the property to
-
setLong
Description copied from interface:ParquetConfigurationSets the value of the name property to a long.- Specified by:
setLongin interfaceParquetConfiguration- Parameters:
name- the property to setvalue- the value to set the property to
-
setInt
Description copied from interface:ParquetConfigurationSets the value of the name property to an integer.- Specified by:
setIntin interfaceParquetConfiguration- Parameters:
name- the property to setvalue- the value to set the property to
-
setBoolean
Description copied from interface:ParquetConfigurationSets the value of the name property to a boolean.- Specified by:
setBooleanin interfaceParquetConfiguration- Parameters:
name- the property to setvalue- the value to set the property to
-
setStrings
Description copied from interface:ParquetConfigurationSets the value of the name property to an array of comma delimited values.- Specified by:
setStringsin interfaceParquetConfiguration- Parameters:
name- the property to setvalue- the values to set the property to
-
setClass
Description copied from interface:ParquetConfigurationSets the value of the name property to a class.- Specified by:
setClassin interfaceParquetConfiguration- Parameters:
name- the property to setvalue- the value to set the property toxface- the interface implemented by the value
-
get
Description copied from interface:ParquetConfigurationGets the value of the name property. Returns null if no such value exists.- Specified by:
getin interfaceParquetConfiguration- Parameters:
name- the property to retrieve the value of- Returns:
- the value of the property, or null if it does not exist
-
get
Description copied from interface:ParquetConfigurationGets the value of the name property. Returns the default value if no such value exists.- Specified by:
getin interfaceParquetConfiguration- Parameters:
name- the property to retrieve the value ofdefaultValue- the default return if no value is set for the property- Returns:
- the value of the property, or the default value if it does not exist
-
getLong
Description copied from interface:ParquetConfigurationGets the value of the name property as a long. Returns the default value if no such value exists.- Specified by:
getLongin interfaceParquetConfiguration- Parameters:
name- the property to retrieve the value ofdefaultValue- the default return if no value is set for the property- Returns:
- the value of the property as a long, or the default value if it does not exist
-
getInt
Description copied from interface:ParquetConfigurationGets the value of the name property as an integer. Returns the default value if no such value exists.- Specified by:
getIntin interfaceParquetConfiguration- Parameters:
name- the property to retrieve the value ofdefaultValue- the default return if no value is set for the property- Returns:
- the value of the property as an integer, or the default value if it does not exist
-
getBoolean
Description copied from interface:ParquetConfigurationGets the value of the name property as a boolean. Returns the default value if no such value exists.- Specified by:
getBooleanin interfaceParquetConfiguration- Parameters:
name- the property to retrieve the value ofdefaultValue- the default return if no value is set for the property- Returns:
- the value of the property as a boolean, or the default value if it does not exist
-
getTrimmed
Description copied from interface:ParquetConfigurationGets the trimmed value of the name property. Returns null if no such value exists.- Specified by:
getTrimmedin interfaceParquetConfiguration- Parameters:
name- the property to retrieve the value of- Returns:
- the trimmed value of the property, or null if it does not exist
-
getTrimmed
Description copied from interface:ParquetConfigurationGets the trimmed value of the name property as a boolean. Returns the default value if no such value exists.- Specified by:
getTrimmedin interfaceParquetConfiguration- Parameters:
name- the property to retrieve the value ofdefaultValue- the default return if no value is set for the property- Returns:
- the trimmed value of the property, or the default value if it does not exist
-
getStrings
Description copied from interface:ParquetConfigurationGets the value of the name property as an array ofStrings. Returns the default value if no such value exists. Interprets the stored value as a comma delimited array.- Specified by:
getStringsin interfaceParquetConfiguration- Parameters:
name- the property to retrieve the value ofdefaultValue- the default return if no value is set for the property- Returns:
- the value of the property as an array, or the default value if it does not exist
-
getClass
Description copied from interface:ParquetConfigurationGets the value of the name property as a class. Returns the default value if no such value exists.- Specified by:
getClassin interfaceParquetConfiguration- Parameters:
name- the property to retrieve the value ofdefaultValue- the default return if no value is set for the property- Returns:
- the value of the property as a class, or the default value if it does not exist
-
getClass
public <U> Class<? extends U> getClass(String name, Class<? extends U> defaultValue, Class<U> xface) Description copied from interface:ParquetConfigurationGets the value of the name property as a class implementing the xface interface. Returns the default value if no such value exists.- Specified by:
getClassin interfaceParquetConfiguration- Parameters:
name- the property to retrieve the value ofdefaultValue- the default return if no value is set for the property- Returns:
- the value of the property as a class, or the default value if it does not exist
-
getClassByName
Description copied from interface:ParquetConfigurationLoad a class by name.- Specified by:
getClassByNamein interfaceParquetConfiguration- Parameters:
name- the name of theClassto load- Returns:
- the loaded class
- Throws:
ClassNotFoundException- when the specified class cannot be found
-
iterator
-