Class CreateTableRequest

java.lang.Object
org.apache.iceberg.rest.requests.CreateTableRequest
All Implemented Interfaces:
RESTMessage, RESTRequest

public class CreateTableRequest extends Object implements RESTRequest
A REST request to create a table, either via direct commit or staging the creation of the table as part of a transaction.
  • Constructor Details

    • CreateTableRequest

      public CreateTableRequest()
  • Method Details

    • validate

      public void validate()
      Description copied from interface: RESTMessage
      Ensures that a constructed instance of a REST message is valid according to the REST spec.

      This is needed when parsing data that comes from external sources and the object might have been constructed without all the required fields present.

      Specified by:
      validate in interface RESTMessage
    • name

      public String name()
    • location

      public String location()
    • schema

      public Schema schema()
    • spec

      public PartitionSpec spec()
    • writeOrder

      public SortOrder writeOrder()
    • properties

      public Map<String,String> properties()
    • stageCreate

      public boolean stageCreate()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static CreateTableRequest.Builder builder()