Package com.kuzudb

Class ValueListUtil

java.lang.Object
com.kuzudb.ValueListUtil

public class ValueListUtil extends Object
Utility functions for Value of list type.
  • Constructor Details

    • ValueListUtil

      public ValueListUtil()
  • Method Details

    • getListSize

      public static long getListSize(Value value) throws ObjectRefDestroyedException
      Get the size of the list value.
      Parameters:
      value - : The list value.
      Returns:
      The size of the list value.
      Throws:
      ObjectRefDestroyedException - If the list value has been destroyed.
    • getListElement

      public static Value getListElement(Value value, long index) throws ObjectRefDestroyedException
      Get the element at the given index from the given list value.
      Parameters:
      value - : The list value.
      index - : The index of the element.
      Returns:
      The element at the given index from the given list value.
      Throws:
      ObjectRefDestroyedException - If the list value has been destroyed.