Package com.kuzudb
Class ValueRelUtil
java.lang.Object
com.kuzudb.ValueRelUtil
Utility functions for Value of rel type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InternalIDGet dst id of the given rel value.static InternalIDGet the id of the given rel value.static StringgetLabelName(Value value) Get the label name of the rel value.static StringgetPropertyNameAt(Value value, long index) Get the property name at the given index from the given rel value.static longgetPropertySize(Value value) Get the property size of the rel value.static ValuegetPropertyValueAt(Value value, long index) Get the property value at the given index from the given rel value.static InternalIDGet src id of the given rel value.static StringConvert the given rel value to string.
-
Constructor Details
-
ValueRelUtil
public ValueRelUtil()
-
-
Method Details
-
getID
Get the id of the given rel value.- Parameters:
value- : The rel value.- Returns:
- The id of the given rel value.
- Throws:
RuntimeException- If the rel value has been destroyed.
-
getSrcID
Get src id of the given rel value.- Parameters:
value- : The rel value.- Returns:
- The src id of the given rel value.
- Throws:
RuntimeException- 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:
RuntimeException- 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:
RuntimeException- 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:
RuntimeException- 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:
RuntimeException- 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:
RuntimeException- 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:
RuntimeException- If the rel value has been destroyed.
-