Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ private RenameTableRequest(TableIdentifier source, TableIdentifier destination)
validate();
}

@Override
public void validate() {
Preconditions.checkArgument(source != null, "Invalid source table: null");
Preconditions.checkArgument(destination != null, "Invalid destination table: null");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@
import org.apache.iceberg.rest.RESTResponse;

/**
*
* A REST response that is used when a table is successfully loaded.
* <p>
* This class is used whenever the response to a request is a table's requested metadata and the associated location
* of its metadata, to reduce code duplication. This includes using this class as the response for
* {@link org.apache.iceberg.rest.requests.CreateTableRequest}, including when that request is used to commit
* an already staged table creation as part of a transaction.
*/
public class LoadTableResponse implements RESTResponse {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ public static class Builder {
private Integer expiresInSeconds;
private final List<String> scopes = Lists.newArrayList();

private Builder() {
}

public Builder withToken(String token) {
this.accessToken = token;
return this;
Expand Down