Package com.kuzudb
Class DataType
java.lang.Object
com.kuzudb.DataType
DataType is the kuzu internal representation of data types.
-
Constructor Summary
ConstructorDescriptionDataType
(DataTypeID id) Create a non-nested DataType object from its internal ID.DataType
(DataTypeID id, DataType child_type, long num_elements_in_array) -
Method Summary
Modifier and TypeMethodDescriptionclone()
Clone the data type instance.void
destroy()
Destroy the data type instance.boolean
Returns true if the given data type is equal to the other data type, false otherwise.protected void
finalize()
Finalize.Returns the child type of the given data type.long
Returns the fixed number of elements in the list of the given data type.getID()
Returns the enum internal id of the given data type.
-
Constructor Details
-
DataType
Create a non-nested DataType object from its internal ID.- Parameters:
id
- : the kuzu internal representation of data type IDs.
-
DataType
-
-
Method Details
-
finalize
Finalize.- Overrides:
finalize
in classObject
- Throws:
ObjectRefDestroyedException
- If the data type instance has been destroyed.
-
destroy
Destroy the data type instance.- Throws:
ObjectRefDestroyedException
- If the data type instance has been destroyed.
-
clone
Clone the data type instance. -
equals
Returns true if the given data type is equal to the other data type, false otherwise.- Parameters:
other
- The other data type to compare with.- Returns:
- If the given data type is equal to the other data type or not.
- Throws:
ObjectRefDestroyedException
- If the data type instance has been destroyed.
-
getID
Returns the enum internal id of the given data type.- Returns:
- The enum internal id of the given data type.
- Throws:
ObjectRefDestroyedException
- If the data type instance has been destroyed.
-
getChildType
Returns the child type of the given data type.- Returns:
- The child type of the given data type.
- Throws:
ObjectRefDestroyedException
- If the data type instance has been destroyed.
-
getFixedNumElementsInList
Returns the fixed number of elements in the list of the given data type.- Returns:
- The fixed number of elements in the list of the given data type.
- Throws:
ObjectRefDestroyedException
- If the data type instance has been destroyed.
-