Package org.apache.iceberg.rest.requests
Class CreateTableRequest
- java.lang.Object
-
- org.apache.iceberg.rest.requests.CreateTableRequest
-
- All Implemented Interfaces:
RESTMessage
,RESTRequest
public class CreateTableRequest extends java.lang.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CreateTableRequest.Builder
-
Constructor Summary
Constructors Constructor Description CreateTableRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateTableRequest.Builder
builder()
java.lang.String
location()
java.lang.String
name()
java.util.Map<java.lang.String,java.lang.String>
properties()
Schema
schema()
PartitionSpec
spec()
boolean
stageCreate()
java.lang.String
toString()
void
validate()
Ensures that a constructed instance of a REST message is valid according to the REST spec.SortOrder
writeOrder()
-
-
-
Method Detail
-
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 interfaceRESTMessage
-
name
public java.lang.String name()
-
location
public java.lang.String location()
-
schema
public Schema schema()
-
spec
public PartitionSpec spec()
-
writeOrder
public SortOrder writeOrder()
-
properties
public java.util.Map<java.lang.String,java.lang.String> properties()
-
stageCreate
public boolean stageCreate()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
builder
public static CreateTableRequest.Builder builder()
-
-