-
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.
parameter set & disable blob encryption
- Loading branch information
1 parent
e808bbd
commit a37433d
Showing
15 changed files
with
427 additions
and
123 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
20 changes: 20 additions & 0 deletions
20
src/main/java/net/snowflake/ingest/streaming/internal/InternalParameterProvider.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,20 @@ | ||
/* | ||
* Copyright (c) 2024 Snowflake Computing Inc. All rights reserved. | ||
*/ | ||
|
||
package net.snowflake.ingest.streaming.internal; | ||
|
||
/** A class to provide non-configurable constants depends on Iceberg or non-Iceberg mode */ | ||
class InternalParameterProvider { | ||
private final boolean isIcebergMode; | ||
|
||
InternalParameterProvider(boolean isIcebergMode) { | ||
this.isIcebergMode = isIcebergMode; | ||
} | ||
|
||
boolean getEnableChunkEncryption() { | ||
// When in Iceberg mode, chunk encryption is disabled. Otherwise, it is enabled. Since Iceberg | ||
// mode does not need client-side encryption. | ||
return !isIcebergMode; | ||
} | ||
} |
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.