Package com.kuzudb

Class ValueRelUtil

java.lang.Object
com.kuzudb.ValueRelUtil

public class ValueRelUtil extends Object
Utility functions for Value of rel type.
  • Constructor Details

    • ValueRelUtil

      public ValueRelUtil()
  • Method Details

    • getID

      public static InternalID getID(Value value)
      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

      public static InternalID getSrcID(Value value)
      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

      public static InternalID getDstID(Value value)
      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

      public static String getLabelName(Value value)
      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

      public static long getPropertySize(Value value)
      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

      public static String getPropertyNameAt(Value value, long index)
      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

      public static Value getPropertyValueAt(Value value, long index)
      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

      public static String toString(Value value)
      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.