Package com.kuzudb

Class ValueNodeUtil

java.lang.Object
com.kuzudb.ValueNodeUtil

public class ValueNodeUtil extends Object
Utility functions for Value of node type.
  • Constructor Details

    • ValueNodeUtil

      public ValueNodeUtil()
  • Method Details

    • getID

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

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

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

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

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

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