Skip to content

Commit caf1da9

Browse files
committed
Annotate Queryable Encryption API as Beta
It is in public technical preview and may change before being finalized. JAVA-4639
1 parent 5e6fab9 commit caf1da9

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

driver-core/src/main/com/mongodb/AutoEncryptionSettings.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package com.mongodb;
1818

19+
import com.mongodb.annotations.Beta;
1920
import com.mongodb.annotations.NotThreadSafe;
2021
import com.mongodb.lang.Nullable;
2122
import org.bson.BsonDocument;
@@ -214,6 +215,7 @@ public Builder bypassAutoEncryption(final boolean bypassAutoEncryption) {
214215
* @return this
215216
* @since 4.7
216217
*/
218+
@Beta(Beta.Reason.SERVER)
217219
public Builder encryptedFieldsMap(final Map<String, BsonDocument> encryptedFieldsMap) {
218220
this.encryptedFieldsMap = notNull("encryptedFieldsMap", encryptedFieldsMap);
219221
return this;
@@ -229,6 +231,7 @@ public Builder encryptedFieldsMap(final Map<String, BsonDocument> encryptedField
229231
* @return this
230232
* @since 4.7
231233
*/
234+
@Beta(Beta.Reason.SERVER)
232235
public Builder bypassQueryAnalysis(final boolean bypassQueryAnalysis) {
233236
this.bypassQueryAnalysis = bypassQueryAnalysis;
234237
return this;
@@ -460,6 +463,7 @@ public boolean isBypassAutoEncryption() {
460463
* @return the mapping of the collection namespaces to encryptedFields
461464
* @since 4.7
462465
*/
466+
@Beta(Beta.Reason.SERVER)
463467
@Nullable
464468
public Map<String, BsonDocument> getEncryptedFieldsMap() {
465469
return encryptedFieldsMap;
@@ -474,6 +478,7 @@ public Map<String, BsonDocument> getEncryptedFieldsMap() {
474478
* @return true if query analysis should be bypassed
475479
* @since 4.7
476480
*/
481+
@Beta(Beta.Reason.SERVER)
477482
public boolean isBypassQueryAnalysis() {
478483
return bypassQueryAnalysis;
479484
}

driver-core/src/main/com/mongodb/client/model/vault/EncryptOptions.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package com.mongodb.client.model.vault;
1818

19+
import com.mongodb.annotations.Beta;
1920
import com.mongodb.lang.Nullable;
2021
import org.bson.BsonBinary;
2122

@@ -36,6 +37,7 @@ public class EncryptOptions {
3637
*
3738
* @since 4.7
3839
*/
40+
@Beta(Beta.Reason.SERVER)
3941
public enum QueryType {
4042
/**
4143
* Equality query type
@@ -129,6 +131,7 @@ public EncryptOptions keyAltName(final String keyAltName) {
129131
* @return this
130132
* @since 4.7
131133
*/
134+
@Beta(Beta.Reason.SERVER)
132135
public EncryptOptions contentionFactor(@Nullable final Long contentionFactor) {
133136
this.contentionFactor = contentionFactor;
134137
return this;
@@ -142,6 +145,7 @@ public EncryptOptions contentionFactor(@Nullable final Long contentionFactor) {
142145
* @since 4.7
143146
*/
144147
@Nullable
148+
@Beta(Beta.Reason.SERVER)
145149
public Long getContentionFactor() {
146150
return contentionFactor;
147151
}
@@ -155,6 +159,7 @@ public Long getContentionFactor() {
155159
* @return this
156160
* @since 4.7
157161
*/
162+
@Beta(Beta.Reason.SERVER)
158163
public EncryptOptions queryType(@Nullable final QueryType queryType) {
159164
this.queryType = queryType;
160165
return this;
@@ -168,6 +173,7 @@ public EncryptOptions queryType(@Nullable final QueryType queryType) {
168173
* @since 4.7
169174
*/
170175
@Nullable
176+
@Beta(Beta.Reason.SERVER)
171177
public QueryType getQueryType() {
172178
return queryType;
173179
}

0 commit comments

Comments
 (0)