-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
44cc28e
commit 30dda19
Showing
25 changed files
with
1,031 additions
and
678 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
188 changes: 0 additions & 188 deletions
188
src/main/java/net/snowflake/ingest/streaming/internal/ConfigureCallHandler.java
This file was deleted.
Oops, something went wrong.
81 changes: 81 additions & 0 deletions
81
src/main/java/net/snowflake/ingest/streaming/internal/ConfigureRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
/* | ||
* Copyright (c) 2024 Snowflake Computing Inc. All rights reserved. | ||
*/ | ||
|
||
package net.snowflake.ingest.streaming.internal; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import net.snowflake.ingest.utils.Utils; | ||
|
||
/** Class used to serialize the client / channel configure request. */ | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class ConfigureRequest implements StreamingIngestRequest { | ||
@JsonProperty("role") | ||
private String role; | ||
|
||
@JsonProperty("database") | ||
private String database; | ||
|
||
@JsonProperty("schema") | ||
private String schema; | ||
|
||
@JsonProperty("table") | ||
private String table; | ||
|
||
@JsonProperty("file_name") | ||
private String fileName; | ||
|
||
/** | ||
* Constructor for client configure request | ||
* | ||
* @param role Role to be used for the request. | ||
*/ | ||
ConfigureRequest(String role) { | ||
this.role = role; | ||
} | ||
|
||
/** | ||
* Constructor for channel configure request | ||
* | ||
* @param role Role to be used for the request. | ||
* @param database Database name. | ||
* @param schema Schema name. | ||
* @param table Table name. | ||
*/ | ||
ConfigureRequest(String role, String database, String schema, String table) { | ||
this.role = role; | ||
this.database = database; | ||
this.schema = schema; | ||
this.table = table; | ||
} | ||
|
||
String getRole() { | ||
return role; | ||
} | ||
|
||
String getDatabase() { | ||
return database; | ||
} | ||
|
||
String getSchema() { | ||
return schema; | ||
} | ||
|
||
String getTable() { | ||
return table; | ||
} | ||
|
||
String getFileName() { | ||
return fileName; | ||
} | ||
|
||
/** Set the file name for the GCS signed url request. */ | ||
void setFileName(String fileName) { | ||
this.fileName = fileName; | ||
} | ||
|
||
String getFullyQualifiedTableName() { | ||
return Utils.getFullyQualifiedTableName(database, schema, table); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.