Package org.apache.parquet.conf
Interface ParquetConfiguration
- All Known Implementing Classes:
PlainParquetConfiguration
Configuration interface with the methods necessary to configure Parquet applications.
-
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.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 interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
set
Sets the value of the name property.- Parameters:
name- the property to setvalue- the value to set the property to
-
setLong
Sets the value of the name property to a long.- Parameters:
name- the property to setvalue- the value to set the property to
-
setInt
Sets the value of the name property to an integer.- Parameters:
name- the property to setvalue- the value to set the property to
-
setBoolean
Sets the value of the name property to a boolean.- Parameters:
name- the property to setvalue- the value to set the property to
-
setStrings
Sets the value of the name property to an array of comma delimited values.- Parameters:
name- the property to setvalue- the values to set the property to
-
setClass
Sets the value of the name property to a class.- Parameters:
name- the property to setvalue- the value to set the property toxface- the interface implemented by the value
-
get
Gets the value of the name property. Returns null if no such value exists.- Parameters:
name- the property to retrieve the value of- Returns:
- the value of the property, or null if it does not exist
-
get
Gets the value of the name property. Returns the default value if no such value exists.- 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
Gets the value of the name property as a long. Returns the default value if no such value exists.- 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
Gets the value of the name property as an integer. Returns the default value if no such value exists.- 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
Gets the value of the name property as a boolean. Returns the default value if no such value exists.- 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
Gets the trimmed value of the name property. Returns null if no such value exists.- Parameters:
name- the property to retrieve the value of- Returns:
- the trimmed value of the property, or null if it does not exist
-
getTrimmed
Gets the trimmed value of the name property as a boolean. Returns the default value if no such value exists.- 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
Gets 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.- 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
Gets the value of the name property as a class. Returns the default value if no such value exists.- 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
Gets the value of the name property as a class implementing the xface interface. Returns the default value if no such value exists.- 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
Load a class by name.- Parameters:
name- the name of theClassto load- Returns:
- the loaded class
- Throws:
ClassNotFoundException- when the specified class cannot be found
-