public class PlainParquetConfiguration extends Object implements ParquetConfiguration
| Constructor and Description |
|---|
PlainParquetConfiguration() |
PlainParquetConfiguration(Map<String,String> properties) |
| Modifier and Type | Method and Description |
|---|---|
String |
get(String name)
Gets the value of the name property.
|
String |
get(String name,
String defaultValue)
Gets the value of the name property.
|
boolean |
getBoolean(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.
|
int |
getInt(String name,
int defaultValue)
Gets the value of the name property as an integer.
|
long |
getLong(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 of
Strings. |
String |
getTrimmed(String name)
Gets the trimmed value of the name property.
|
String |
getTrimmed(String name,
String defaultValue)
Gets the trimmed value of the name property as a boolean.
|
Iterator<Map.Entry<String,String>> |
iterator() |
void |
set(String s,
String s1)
Sets the value of the name property.
|
void |
setBoolean(String name,
boolean value)
Sets the value of the name property to a boolean.
|
void |
setClass(String name,
Class<?> value,
Class<?> xface)
Sets the value of the name property to a class.
|
void |
setInt(String name,
int value)
Sets the value of the name property to an integer.
|
void |
setLong(String name,
long value)
Sets the value of the name property to a long.
|
void |
setStrings(String name,
String... value)
Sets the value of the name property to an array of comma delimited values.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic void set(String s, String s1)
ParquetConfigurationset in interface ParquetConfigurations - the property to sets1 - the value to set the property topublic void setLong(String name, long value)
ParquetConfigurationsetLong in interface ParquetConfigurationname - the property to setvalue - the value to set the property topublic void setInt(String name, int value)
ParquetConfigurationsetInt in interface ParquetConfigurationname - the property to setvalue - the value to set the property topublic void setBoolean(String name, boolean value)
ParquetConfigurationsetBoolean in interface ParquetConfigurationname - the property to setvalue - the value to set the property topublic void setStrings(String name, String... value)
ParquetConfigurationsetStrings in interface ParquetConfigurationname - the property to setvalue - the values to set the property topublic void setClass(String name, Class<?> value, Class<?> xface)
ParquetConfigurationsetClass in interface ParquetConfigurationname - the property to setvalue - the value to set the property toxface - the interface implemented by the valuepublic String get(String name)
ParquetConfigurationget in interface ParquetConfigurationname - the property to retrieve the value ofpublic String get(String name, String defaultValue)
ParquetConfigurationget in interface ParquetConfigurationname - the property to retrieve the value ofdefaultValue - the default return if no value is set for the propertypublic long getLong(String name, long defaultValue)
ParquetConfigurationgetLong in interface ParquetConfigurationname - the property to retrieve the value ofdefaultValue - the default return if no value is set for the propertypublic int getInt(String name, int defaultValue)
ParquetConfigurationgetInt in interface ParquetConfigurationname - the property to retrieve the value ofdefaultValue - the default return if no value is set for the propertypublic boolean getBoolean(String name, boolean defaultValue)
ParquetConfigurationgetBoolean in interface ParquetConfigurationname - the property to retrieve the value ofdefaultValue - the default return if no value is set for the propertypublic String getTrimmed(String name)
ParquetConfigurationgetTrimmed in interface ParquetConfigurationname - the property to retrieve the value ofpublic String getTrimmed(String name, String defaultValue)
ParquetConfigurationgetTrimmed in interface ParquetConfigurationname - the property to retrieve the value ofdefaultValue - the default return if no value is set for the propertypublic String[] getStrings(String name, String[] defaultValue)
ParquetConfigurationStrings.
Returns the default value if no such value exists.
Interprets the stored value as a comma delimited array.getStrings in interface ParquetConfigurationname - the property to retrieve the value ofdefaultValue - the default return if no value is set for the propertypublic Class<?> getClass(String name, Class<?> defaultValue)
ParquetConfigurationgetClass in interface ParquetConfigurationname - the property to retrieve the value ofdefaultValue - the default return if no value is set for the propertypublic <U> Class<? extends U> getClass(String name, Class<? extends U> defaultValue, Class<U> xface)
ParquetConfigurationgetClass in interface ParquetConfigurationname - the property to retrieve the value ofdefaultValue - the default return if no value is set for the propertypublic Class<?> getClassByName(String name) throws ClassNotFoundException
ParquetConfigurationgetClassByName in interface ParquetConfigurationname - the name of the Class to loadClassNotFoundException - when the specified class cannot be foundCopyright © 2023 The Apache Software Foundation. All rights reserved.