Interface UDTElementBuilder


public interface UDTElementBuilder
A builder interface for constructing ScyllaDB User-Defined Types (UDTs).
  • Method Summary

    Modifier and Type
    Method
    Description
    addUDT(Iterable<org.eclipse.jnosql.communication.semistructured.Element> udt)
    Adds a single UDT element to the builder.
    addUDTs(Iterable<Iterable<org.eclipse.jnosql.communication.semistructured.Element>> udts)
    Adds multiple UDTs to the builder, typically used when a UDT is part of a list.
  • Method Details

    • addUDT

      UDTFinisherBuilder addUDT(Iterable<org.eclipse.jnosql.communication.semistructured.Element> udt) throws NullPointerException
      Adds a single UDT element to the builder.
      Parameters:
      udt - the UDT element to be added
      Returns:
      the builder instance
      Throws:
      NullPointerException - if the udt or any of its elements is null
    • addUDTs

      UDTFinisherBuilder addUDTs(Iterable<Iterable<org.eclipse.jnosql.communication.semistructured.Element>> udts) throws NullPointerException
      Adds multiple UDTs to the builder, typically used when a UDT is part of a list. For example:
           CREATE COLUMNFAMILY IF NOT EXISTS contacts (
               user text PRIMARY KEY,
               names list<frozen <fullname>>
           );
       
      Parameters:
      udts - the UDTs to be added
      Returns:
      the builder instance
      Throws:
      NullPointerException - if any of the udts or their elements is null