Package com.kuzudb

Class KuzuStruct

java.lang.Object
com.kuzudb.KuzuStruct
All Implemented Interfaces:
AutoCloseable

public class KuzuStruct extends Object implements AutoCloseable
  • Constructor Details

    • KuzuStruct

      public KuzuStruct(Value value)
      Construct a struct from a value
      Parameters:
      value - the value to construct the struct from
    • KuzuStruct

      public KuzuStruct(Map<String,Value> fields) throws ObjectRefDestroyedException
      Construct a struct literal from a given set of fields represented as a Java map.
      Parameters:
      fields - : The fields of the struct, with the keys representing the field names and the values representing the field values.
      Throws:
      ObjectRefDestroyedException
    • KuzuStruct

      public KuzuStruct(String[] fieldNames, Value[] fieldValues) throws ObjectRefDestroyedException
      Construct a struct literal from a given set of fields. The length of the fieldName/fieldValue arrays must be the same.
      Parameters:
      fieldNames - : The name of the struct fields
      fieldValues - : The values of the struct fields
      Throws:
      ObjectRefDestroyedException
  • Method Details