public final class com.mongodb.bulk.UpdateRequest extends com.mongodb.bulk.WriteRequest
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.mongodb.bulk.UpdateRequest
super_class: com.mongodb.bulk.WriteRequest
{
private final org.bson.BsonValue update;
descriptor: Lorg/bson/BsonValue;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.mongodb.bulk.WriteRequest$Type updateType;
descriptor: Lcom/mongodb/bulk/WriteRequest$Type;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.bson.BsonDocument filter;
descriptor: Lorg/bson/BsonDocument;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private boolean isMulti;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean isUpsert;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private com.mongodb.client.model.Collation collation;
descriptor: Lcom/mongodb/client/model/Collation;
flags: (0x0002) ACC_PRIVATE
private java.util.List<org.bson.BsonDocument> arrayFilters;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Lorg/bson/BsonDocument;>;
public void <init>(org.bson.BsonDocument, org.bson.BsonValue, com.mongodb.bulk.WriteRequest$Type);
descriptor: (Lorg/bson/BsonDocument;Lorg/bson/BsonValue;Lcom/mongodb/bulk/WriteRequest$Type;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial com.mongodb.bulk.WriteRequest.<init>:()V
1: aload 0
iconst_1
putfield com.mongodb.bulk.UpdateRequest.isMulti:Z
2: aload 0
iconst_0
putfield com.mongodb.bulk.UpdateRequest.isUpsert:Z
3: aload 3
getstatic com.mongodb.bulk.WriteRequest$Type.UPDATE:Lcom/mongodb/bulk/WriteRequest$Type;
if_acmpeq 5
aload 3
getstatic com.mongodb.bulk.WriteRequest$Type.REPLACE:Lcom/mongodb/bulk/WriteRequest$Type;
if_acmpeq 5
4: new java.lang.IllegalArgumentException
dup
ldc "Update type must be UPDATE or REPLACE"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: com.mongodb.bulk.UpdateRequest org.bson.BsonDocument org.bson.BsonValue com.mongodb.bulk.WriteRequest$Type
StackMap stack:
aload 2
ifnull 7
aload 2
invokevirtual org.bson.BsonValue.isDocument:()Z
ifne 7
aload 2
invokevirtual org.bson.BsonValue.isArray:()Z
ifne 7
6: new java.lang.IllegalArgumentException
dup
ldc "Update operation type must be a document or a pipeline"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 0
ldc "filter"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.bson.BsonDocument
putfield com.mongodb.bulk.UpdateRequest.filter:Lorg/bson/BsonDocument;
8: aload 0
ldc "update"
aload 2
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.bson.BsonValue
putfield com.mongodb.bulk.UpdateRequest.update:Lorg/bson/BsonValue;
9: aload 0
aload 3
putfield com.mongodb.bulk.UpdateRequest.updateType:Lcom/mongodb/bulk/WriteRequest$Type;
10: aload 0
aload 3
getstatic com.mongodb.bulk.WriteRequest$Type.UPDATE:Lcom/mongodb/bulk/WriteRequest$Type;
if_acmpne 11
iconst_1
goto 12
StackMap locals:
StackMap stack: com.mongodb.bulk.UpdateRequest
11: iconst_0
StackMap locals: com.mongodb.bulk.UpdateRequest org.bson.BsonDocument org.bson.BsonValue com.mongodb.bulk.WriteRequest$Type
StackMap stack: com.mongodb.bulk.UpdateRequest int
12: putfield com.mongodb.bulk.UpdateRequest.isMulti:Z
13: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/mongodb/bulk/UpdateRequest;
0 14 1 filter Lorg/bson/BsonDocument;
0 14 2 update Lorg/bson/BsonValue;
0 14 3 updateType Lcom/mongodb/bulk/WriteRequest$Type;
MethodParameters:
Name Flags
filter final
update final
updateType final
public com.mongodb.bulk.WriteRequest$Type getType();
descriptor: ()Lcom/mongodb/bulk/WriteRequest$Type;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.bulk.UpdateRequest.updateType:Lcom/mongodb/bulk/WriteRequest$Type;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/bulk/UpdateRequest;
public org.bson.BsonDocument getFilter();
descriptor: ()Lorg/bson/BsonDocument;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.bulk.UpdateRequest.filter:Lorg/bson/BsonDocument;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/bulk/UpdateRequest;
public org.bson.BsonDocument getUpdate();
descriptor: ()Lorg/bson/BsonDocument;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.bulk.UpdateRequest.update:Lorg/bson/BsonValue;
invokevirtual org.bson.BsonValue.isDocument:()Z
ifeq 2
1: aload 0
getfield com.mongodb.bulk.UpdateRequest.update:Lorg/bson/BsonValue;
invokevirtual org.bson.BsonValue.asDocument:()Lorg/bson/BsonDocument;
areturn
2: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/bulk/UpdateRequest;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public org.bson.BsonValue getUpdateValue();
descriptor: ()Lorg/bson/BsonValue;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.bulk.UpdateRequest.update:Lorg/bson/BsonValue;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/bulk/UpdateRequest;
public boolean isMulti();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.bulk.UpdateRequest.isMulti:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/bulk/UpdateRequest;
public com.mongodb.bulk.UpdateRequest multi(boolean);
descriptor: (Z)Lcom/mongodb/bulk/UpdateRequest;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifeq 2
aload 0
getfield com.mongodb.bulk.UpdateRequest.updateType:Lcom/mongodb/bulk/WriteRequest$Type;
getstatic com.mongodb.bulk.WriteRequest$Type.REPLACE:Lcom/mongodb/bulk/WriteRequest$Type;
if_acmpne 2
1: new java.lang.IllegalArgumentException
dup
ldc "Replacements can not be multi"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield com.mongodb.bulk.UpdateRequest.isMulti:Z
3: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/mongodb/bulk/UpdateRequest;
0 4 1 isMulti Z
MethodParameters:
Name Flags
isMulti final
public boolean isUpsert();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.bulk.UpdateRequest.isUpsert:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/bulk/UpdateRequest;
public com.mongodb.bulk.UpdateRequest upsert(boolean);
descriptor: (Z)Lcom/mongodb/bulk/UpdateRequest;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield com.mongodb.bulk.UpdateRequest.isUpsert:Z
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/bulk/UpdateRequest;
0 2 1 isUpsert Z
MethodParameters:
Name Flags
isUpsert final
public com.mongodb.client.model.Collation getCollation();
descriptor: ()Lcom/mongodb/client/model/Collation;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.bulk.UpdateRequest.collation:Lcom/mongodb/client/model/Collation;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/bulk/UpdateRequest;
public com.mongodb.bulk.UpdateRequest collation(com.mongodb.client.model.Collation);
descriptor: (Lcom/mongodb/client/model/Collation;)Lcom/mongodb/bulk/UpdateRequest;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield com.mongodb.bulk.UpdateRequest.collation:Lcom/mongodb/client/model/Collation;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/bulk/UpdateRequest;
0 2 1 collation Lcom/mongodb/client/model/Collation;
MethodParameters:
Name Flags
collation final
public com.mongodb.bulk.UpdateRequest arrayFilters(java.util.List<org.bson.BsonDocument>);
descriptor: (Ljava/util/List;)Lcom/mongodb/bulk/UpdateRequest;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield com.mongodb.bulk.UpdateRequest.arrayFilters:Ljava/util/List;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/bulk/UpdateRequest;
0 2 1 arrayFilters Ljava/util/List<Lorg/bson/BsonDocument;>;
Signature: (Ljava/util/List<Lorg/bson/BsonDocument;>;)Lcom/mongodb/bulk/UpdateRequest;
MethodParameters:
Name Flags
arrayFilters final
public java.util.List<org.bson.BsonDocument> getArrayFilters();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.bulk.UpdateRequest.arrayFilters:Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/bulk/UpdateRequest;
Signature: ()Ljava/util/List<Lorg/bson/BsonDocument;>;
}
SourceFile: "UpdateRequest.java"
InnerClasses:
public final Type = com.mongodb.bulk.WriteRequest$Type of com.mongodb.bulk.WriteRequest
RuntimeVisibleAnnotations:
java.lang.Deprecated()