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