Package org.apache.parquet.conf
Interface ParquetConfiguration
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringget(String name)Gets the value of the name property.Stringget(String name, String defaultValue)Gets the value of the name property.booleangetBoolean(String name, boolean defaultValue)Gets the value of the name property as a boolean.Class<?>getClass(String name, Class<?> defaultValue)Gets the value of the name property as a class.<U> Class<? extends U>getClass(String name, Class<? extends U> defaultValue, Class<U> xface)Gets the value of the name property as a class implementing the xface interface.Class<?>getClassByName(String name)Load a class by name.intgetInt(String name, int defaultValue)Gets the value of the name property as an integer.longgetLong(String name, long defaultValue)Gets 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.StringgetTrimmed(String name)Gets the trimmed value of the name property.StringgetTrimmed(String name, String defaultValue)Gets the trimmed value of the name property as a boolean.voidset(String name, String value)Sets the value of the name property.voidsetBoolean(String name, boolean value)Sets the value of the name property to a boolean.voidsetClass(String name, Class<?> value, Class<?> xface)Sets the value of the name property to a class.voidsetInt(String name, int value)Sets the value of the name property to an integer.voidsetLong(String name, long value)Sets 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 Detail
-
set
void set(String name, String value)
Sets the value of the name property.- Parameters:
name- the property to setvalue- the value to set the property to
-
setLong
void setLong(String name, long value)
Sets the value of the name property to a long.- Parameters:
name- the property to setvalue- the value to set the property to
-
setInt
void setInt(String name, int value)
Sets the value of the name property to an integer.- Parameters:
name- the property to setvalue- the value to set the property to
-
setBoolean
void setBoolean(String name, boolean value)
Sets the value of the name property to a boolean.- Parameters:
name- the property to setvalue- the value to set the property to
-
setStrings
void setStrings(String name, String... value)
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
void setClass(String name, Class<?> value, Class<?> xface)
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
String get(String name)
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
String get(String name, String defaultValue)
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
long getLong(String name, long defaultValue)
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
int getInt(String name, int defaultValue)
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
boolean getBoolean(String name, boolean defaultValue)
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
String getTrimmed(String name)
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
String getTrimmed(String name, String defaultValue)
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
String[] getStrings(String name, String[] defaultValue)
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
Class<?> getClass(String name, Class<?> defaultValue)
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
<U> Class<? extends U> getClass(String name, Class<? extends U> defaultValue, Class<U> xface)
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
Class<?> getClassByName(String name) throws ClassNotFoundException
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
-
-