Package org.apache.arrow.adbc.core
Class TypedKey<T>
java.lang.Object
org.apache.arrow.adbc.core.TypedKey<T>
- Type Parameters:
T- The option value type.
A typesafe option key.
- Since:
- ADBC API revision 1.1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean@Nullable TGet the option value (if it was set) and check the type.getKey()Get the option key.inthashCode()voidSet this option in an options map (like forAdbcDriver.open(Map).toString()
-
Constructor Details
-
TypedKey
-
-
Method Details
-
getKey
Get the option key. -
get
Get the option value (if it was set) and check the type.- Throws:
ClassCastException- if the value is of the wrong type.
-
set
Set this option in an options map (like forAdbcDriver.open(Map).- Parameters:
options- The options.value- The option value.
-
equals
-
hashCode
public int hashCode() -
toString
-