Package com.kuzudb
Class ValueNodeUtil
java.lang.Object
com.kuzudb.ValueNodeUtil
Utility functions for Value of node type.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic InternalID
Get the internal ID of the node value.static String
getLabelName
(Value value) Get the label name of the node value.static String
getPropertyNameAt
(Value value, long index) Get the property name at the given index from the given node value.static long
getPropertySize
(Value value) Get the property size of the node value.static Value
getPropertyValueAt
(Value value, long index) Get the property value at the given index from the given node value.static String
Convert the node value to string.
-
Constructor Details
-
ValueNodeUtil
public ValueNodeUtil()
-
-
Method Details
-
getID
Get the internal ID of the node value.- Parameters:
value
- : The node value.- Returns:
- The internal ID of the node value.
- Throws:
ObjectRefDestroyedException
- If the node value has been destroyed.
-
getLabelName
Get the label name of the node value.- Parameters:
value
- : The node value.- Returns:
- The label name of the node value.
- Throws:
ObjectRefDestroyedException
- If the node value has been destroyed.
-
getPropertySize
Get the property size of the node value.- Parameters:
value
- : The node value.- Returns:
- The property size of the node value.
- Throws:
ObjectRefDestroyedException
- If the node value has been destroyed.
-
getPropertyNameAt
Get the property name at the given index from the given node value.- Parameters:
value
- : The node value.index
- : The index of the property.- Returns:
- The property name at the given index from the given node value.
- Throws:
ObjectRefDestroyedException
- If the node value has been destroyed.
-
getPropertyValueAt
Get the property value at the given index from the given node value.- Parameters:
value
- : The node value.index
- : The index of the property.- Returns:
- The property value at the given index from the given node value.
- Throws:
ObjectRefDestroyedException
- If the node value has been destroyed.
-
toString
Convert the node value to string.- Parameters:
value
- : The node value.- Returns:
- The node value in string format.
- Throws:
ObjectRefDestroyedException
- If the node value has been destroyed.
-