Package alluxio.table.common
Class BaseConfiguration<T extends BaseProperty>
- java.lang.Object
-
- alluxio.table.common.BaseConfiguration<T>
-
- Type Parameters:
T- the type of property that this instance is used for
- Direct Known Subclasses:
UdbConfiguration
public abstract class BaseConfiguration<T extends BaseProperty> extends java.lang.ObjectThis represents a configuration of the catalog.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.String>mValues
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseConfiguration()BaseConfiguration(java.util.Map<java.lang.String,java.lang.String> values)Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringget(T property)Returns the value of this property, or the default value if the property is not defined.booleangetBoolean(T property)Return the boolean value of this property.intgetInt(T property)Return the int value of this property , or the default value if the property is not defined.java.util.Map<java.lang.String,java.lang.String>getMap()
-
-
-
Method Detail
-
get
public java.lang.String get(T property)
Returns the value of this property, or the default value if the property is not defined.- Parameters:
property- the property to get the value for- Returns:
- the property value
-
getInt
public int getInt(T property)
Return the int value of this property , or the default value if the property is not defined.- Parameters:
property- the property to get the int value- Returns:
- the int value of property
-
getBoolean
public boolean getBoolean(T property)
Return the boolean value of this property.- Parameters:
property- the property to get the boolean value- Returns:
- the boolean value of property
-
getMap
public java.util.Map<java.lang.String,java.lang.String> getMap()
- Returns:
- the full map of the configuration
-
-