Package com.kuzudb
Class DataType
java.lang.Object
com.kuzudb.DataType
- All Implemented Interfaces:
AutoCloseable
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
close()
Close the datatype and release the underlying resources.boolean
Returns true if the given data type is equal to the other data type, false otherwise.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
-
close
Close the datatype and release the underlying resources. This method is invoked automatically on objects managed by the try-with-resources statement.- Specified by:
close
in interfaceAutoCloseable
- 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.
-