Package io.trino.plugin.accumulo
Class Types
java.lang.Object
io.trino.plugin.accumulo.Types
Utility class for Trino Type-related functionality.
-
Method Summary
Modifier and TypeMethodDescriptionstatic TypegetElementType(Type type) Gets the element type of the given array type.static TypegetKeyType(Type type) Gets the key type of the given map type.static TypegetValueType(Type type) Gets the value type of the given map type.static booleanisArrayType(Type type) static boolean
-
Method Details
-
isArrayType
-
isMapType
-
getElementType
Gets the element type of the given array type. Does not validate that the given type is an array.- Parameters:
type- An array type- Returns:
- Element type of the array
- Throws:
IndexOutOfBoundsException- If type is not an array- See Also:
-
getKeyType
Gets the key type of the given map type. Does not validate that the given type is a map.- Parameters:
type- A map type- Returns:
- Key type of the map
- Throws:
IndexOutOfBoundsException- If type is not a map- See Also:
-
getValueType
Gets the value type of the given map type. Does not validate that the given type is a map.- Parameters:
type- A map type- Returns:
- Value type of the map
- Throws:
IndexOutOfBoundsException- If type is not a map- See Also:
-