Package org.apache.calcite.avatica
Class ConnectionConfigImpl.PropEnv
java.lang.Object
org.apache.calcite.avatica.ConnectionConfigImpl.PropEnv
- Enclosing class:
- ConnectionConfigImpl
The combination of a property definition and a map of property values.
-
Constructor Summary
ConstructorsConstructorDescriptionPropEnv(Map<? extends ConnectionProperty, String> map, ConnectionProperty property) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the boolean value of this property.booleangetBoolean(boolean defaultValue) Returns the boolean value of this property.doubleReturns the double value of this property.doubleReturns the double value of this property.<E extends Enum<E>>
EReturns the enum value of this property.<E extends Enum<E>>
EReturns the enum value of this property.intgetInt()Returns the int value of this property.intReturns the int value of this property.longgetLong()Returns the long value of this property.longReturns the long value of this property.<T> TReturns an instance of a plugin, using a given class name if none is set.<T> TReturns an instance of a plugin.Returns the string value of this property, or null if not specified and no default.Returns the string value of this property, or null if not specified and no default.
-
Constructor Details
-
PropEnv
-
-
Method Details
-
getString
Returns the string value of this property, or null if not specified and no default. -
getString
Returns the string value of this property, or null if not specified and no default. -
getInt
public int getInt()Returns the int value of this property. Throws if not set and no default. -
getInt
Returns the int value of this property. Throws if not set and no default. -
getLong
public long getLong()Returns the long value of this property. Throws if not set and no default. -
getLong
Returns the long value of this property. Throws if not set and no default. -
getDouble
public double getDouble()Returns the double value of this property. Throws if not set and no default. -
getDouble
Returns the double value of this property. Throws if not set and no default. -
getBoolean
public boolean getBoolean()Returns the boolean value of this property. Throws if not set and no default. -
getBoolean
public boolean getBoolean(boolean defaultValue) Returns the boolean value of this property. Throws if not set and no default. -
getEnum
Returns the enum value of this property. Throws if not set and no default. -
getEnum
Returns the enum value of this property. Throws if not set and no default. -
getPlugin
Returns an instance of a plugin.Throws if not set and no default. Also throws if the class does not implement the required interface, or if it does not have a public default constructor or an public static field called
#INSTANCE. -
getPlugin
Returns an instance of a plugin, using a given class name if none is set.Throws if not set and no default. Also throws if the class does not implement the required interface, or if it does not have a public default constructor or an public static field called
#INSTANCE.
-