Package org.apache.iceberg.rest.requests
Class UpdateTableRequest
- java.lang.Object
-
- org.apache.iceberg.rest.requests.UpdateTableRequest
-
- All Implemented Interfaces:
RESTMessage
,RESTRequest
public class UpdateTableRequest extends java.lang.Object implements RESTRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UpdateTableRequest.Builder
static interface
UpdateTableRequest.UpdateRequirement
-
Constructor Summary
Constructors Constructor Description UpdateTableRequest()
UpdateTableRequest(java.util.List<UpdateTableRequest.UpdateRequirement> requirements, java.util.List<MetadataUpdate> updates)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UpdateTableRequest.Builder
builderFor(TableMetadata base)
static UpdateTableRequest.Builder
builderForCreate()
static UpdateTableRequest.Builder
builderForReplace(TableMetadata base)
java.util.List<UpdateTableRequest.UpdateRequirement>
requirements()
java.lang.String
toString()
java.util.List<MetadataUpdate>
updates()
void
validate()
Ensures that a constructed instance of a REST message is valid according to the REST spec.
-
-
-
Constructor Detail
-
UpdateTableRequest
public UpdateTableRequest()
-
UpdateTableRequest
public UpdateTableRequest(java.util.List<UpdateTableRequest.UpdateRequirement> requirements, java.util.List<MetadataUpdate> updates)
-
-
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
-
requirements
public java.util.List<UpdateTableRequest.UpdateRequirement> requirements()
-
updates
public java.util.List<MetadataUpdate> updates()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
builderForCreate
public static UpdateTableRequest.Builder builderForCreate()
-
builderForReplace
public static UpdateTableRequest.Builder builderForReplace(TableMetadata base)
-
builderFor
public static UpdateTableRequest.Builder builderFor(TableMetadata base)
-
-