class com.mongodb.operation.BulkWriteBatch$WriteRequestEncoder implements org.bson.codecs.Encoder<com.mongodb.bulk.WriteRequest>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.mongodb.operation.BulkWriteBatch$WriteRequestEncoder
super_class: java.lang.Object
{
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/operation/BulkWriteBatch$WriteRequestEncoder;
public void encode(org.bson.BsonWriter, com.mongodb.bulk.WriteRequest, org.bson.codecs.EncoderContext);
descriptor: (Lorg/bson/BsonWriter;Lcom/mongodb/bulk/WriteRequest;Lorg/bson/codecs/EncoderContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
invokevirtual com.mongodb.bulk.WriteRequest.getType:()Lcom/mongodb/bulk/WriteRequest$Type;
getstatic com.mongodb.bulk.WriteRequest$Type.INSERT:Lcom/mongodb/bulk/WriteRequest$Type;
if_acmpne 4
1: aload 2
checkcast com.mongodb.bulk.InsertRequest
invokevirtual com.mongodb.bulk.InsertRequest.getDocument:()Lorg/bson/BsonDocument;
astore 4
start local 4 2: aload 4
invokestatic com.mongodb.operation.BulkWriteBatch.getCodec:(Lorg/bson/BsonDocument;)Lorg/bson/codecs/Codec;
aload 1
aload 4
invokestatic org.bson.codecs.EncoderContext.builder:()Lorg/bson/codecs/EncoderContext$Builder;
iconst_1
invokevirtual org.bson.codecs.EncoderContext$Builder.isEncodingCollectibleDocument:(Z)Lorg/bson/codecs/EncoderContext$Builder;
invokevirtual org.bson.codecs.EncoderContext$Builder.build:()Lorg/bson/codecs/EncoderContext;
invokeinterface org.bson.codecs.Codec.encode:(Lorg/bson/BsonWriter;Ljava/lang/Object;Lorg/bson/codecs/EncoderContext;)V
end local 4 3: goto 58
StackMap locals:
StackMap stack:
4: aload 2
invokevirtual com.mongodb.bulk.WriteRequest.getType:()Lcom/mongodb/bulk/WriteRequest$Type;
getstatic com.mongodb.bulk.WriteRequest$Type.UPDATE:Lcom/mongodb/bulk/WriteRequest$Type;
if_acmpeq 5
aload 2
invokevirtual com.mongodb.bulk.WriteRequest.getType:()Lcom/mongodb/bulk/WriteRequest$Type;
getstatic com.mongodb.bulk.WriteRequest$Type.REPLACE:Lcom/mongodb/bulk/WriteRequest$Type;
if_acmpne 46
5: StackMap locals:
StackMap stack:
aload 2
checkcast com.mongodb.bulk.UpdateRequest
astore 4
start local 4 6: aload 1
invokeinterface org.bson.BsonWriter.writeStartDocument:()V
7: aload 1
ldc "q"
invokeinterface org.bson.BsonWriter.writeName:(Ljava/lang/String;)V
8: aload 4
invokevirtual com.mongodb.bulk.UpdateRequest.getFilter:()Lorg/bson/BsonDocument;
invokestatic com.mongodb.operation.BulkWriteBatch.getCodec:(Lorg/bson/BsonDocument;)Lorg/bson/codecs/Codec;
aload 1
aload 4
invokevirtual com.mongodb.bulk.UpdateRequest.getFilter:()Lorg/bson/BsonDocument;
invokestatic org.bson.codecs.EncoderContext.builder:()Lorg/bson/codecs/EncoderContext$Builder;
invokevirtual org.bson.codecs.EncoderContext$Builder.build:()Lorg/bson/codecs/EncoderContext;
invokeinterface org.bson.codecs.Codec.encode:(Lorg/bson/BsonWriter;Ljava/lang/Object;Lorg/bson/codecs/EncoderContext;)V
9: aload 4
invokevirtual com.mongodb.bulk.UpdateRequest.getUpdateValue:()Lorg/bson/BsonValue;
astore 5
start local 5 10: aload 5
invokevirtual org.bson.BsonValue.isDocument:()Z
ifne 12
aload 5
invokevirtual org.bson.BsonValue.isArray:()Z
ifne 12
11: new java.lang.IllegalArgumentException
dup
ldc "Invalid BSON value for an update."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals: com.mongodb.bulk.UpdateRequest org.bson.BsonValue
StackMap stack:
aload 5
invokevirtual org.bson.BsonValue.isArray:()Z
ifeq 14
aload 5
invokevirtual org.bson.BsonValue.asArray:()Lorg/bson/BsonArray;
invokevirtual org.bson.BsonArray.isEmpty:()Z
ifeq 14
13: new java.lang.IllegalArgumentException
dup
ldc "Invalid pipeline for an update. The pipeline may not be empty."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
aload 1
ldc "u"
invokeinterface org.bson.BsonWriter.writeName:(Ljava/lang/String;)V
15: aload 5
invokevirtual org.bson.BsonValue.isDocument:()Z
ifeq 22
16: new com.mongodb.internal.connection.FieldTrackingBsonWriter
dup
aload 1
invokespecial com.mongodb.internal.connection.FieldTrackingBsonWriter.<init>:(Lorg/bson/BsonWriter;)V
astore 6
start local 6 17: aload 5
invokevirtual org.bson.BsonValue.asDocument:()Lorg/bson/BsonDocument;
invokestatic com.mongodb.operation.BulkWriteBatch.getCodec:(Lorg/bson/BsonDocument;)Lorg/bson/codecs/Codec;
aload 6
aload 5
invokevirtual org.bson.BsonValue.asDocument:()Lorg/bson/BsonDocument;
18: invokestatic org.bson.codecs.EncoderContext.builder:()Lorg/bson/codecs/EncoderContext$Builder;
invokevirtual org.bson.codecs.EncoderContext$Builder.build:()Lorg/bson/codecs/EncoderContext;
19: invokeinterface org.bson.codecs.Codec.encode:(Lorg/bson/BsonWriter;Ljava/lang/Object;Lorg/bson/codecs/EncoderContext;)V
20: aload 2
invokevirtual com.mongodb.bulk.WriteRequest.getType:()Lcom/mongodb/bulk/WriteRequest$Type;
getstatic com.mongodb.bulk.WriteRequest$Type.UPDATE:Lcom/mongodb/bulk/WriteRequest$Type;
if_acmpne 29
aload 6
invokevirtual com.mongodb.internal.connection.FieldTrackingBsonWriter.hasWrittenField:()Z
ifne 29
21: new java.lang.IllegalArgumentException
dup
ldc "Invalid BSON document for an update. The document may not be empty."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 6 22: StackMap locals:
StackMap stack:
aload 4
invokevirtual com.mongodb.bulk.UpdateRequest.getType:()Lcom/mongodb/bulk/WriteRequest$Type;
getstatic com.mongodb.bulk.WriteRequest$Type.UPDATE:Lcom/mongodb/bulk/WriteRequest$Type;
if_acmpne 29
aload 5
invokevirtual org.bson.BsonValue.isArray:()Z
ifeq 29
23: aload 1
invokeinterface org.bson.BsonWriter.writeStartArray:()V
24: aload 5
invokevirtual org.bson.BsonValue.asArray:()Lorg/bson/BsonArray;
invokevirtual org.bson.BsonArray.iterator:()Ljava/util/Iterator;
astore 7
goto 27
StackMap locals: com.mongodb.operation.BulkWriteBatch$WriteRequestEncoder org.bson.BsonWriter com.mongodb.bulk.WriteRequest org.bson.codecs.EncoderContext com.mongodb.bulk.UpdateRequest org.bson.BsonValue top java.util.Iterator
StackMap stack:
25: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.bson.BsonValue
astore 6
start local 6 26: aload 6
invokevirtual org.bson.BsonValue.asDocument:()Lorg/bson/BsonDocument;
invokestatic com.mongodb.operation.BulkWriteBatch.getCodec:(Lorg/bson/BsonDocument;)Lorg/bson/codecs/Codec;
aload 1
aload 6
invokevirtual org.bson.BsonValue.asDocument:()Lorg/bson/BsonDocument;
invokestatic org.bson.codecs.EncoderContext.builder:()Lorg/bson/codecs/EncoderContext$Builder;
invokevirtual org.bson.codecs.EncoderContext$Builder.build:()Lorg/bson/codecs/EncoderContext;
invokeinterface org.bson.codecs.Codec.encode:(Lorg/bson/BsonWriter;Ljava/lang/Object;Lorg/bson/codecs/EncoderContext;)V
end local 6 27: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 25
28: aload 1
invokeinterface org.bson.BsonWriter.writeEndArray:()V
29: StackMap locals: com.mongodb.operation.BulkWriteBatch$WriteRequestEncoder org.bson.BsonWriter com.mongodb.bulk.WriteRequest org.bson.codecs.EncoderContext com.mongodb.bulk.UpdateRequest org.bson.BsonValue
StackMap stack:
aload 4
invokevirtual com.mongodb.bulk.UpdateRequest.isMulti:()Z
ifeq 31
30: aload 1
ldc "multi"
aload 4
invokevirtual com.mongodb.bulk.UpdateRequest.isMulti:()Z
invokeinterface org.bson.BsonWriter.writeBoolean:(Ljava/lang/String;Z)V
31: StackMap locals:
StackMap stack:
aload 4
invokevirtual com.mongodb.bulk.UpdateRequest.isUpsert:()Z
ifeq 33
32: aload 1
ldc "upsert"
aload 4
invokevirtual com.mongodb.bulk.UpdateRequest.isUpsert:()Z
invokeinterface org.bson.BsonWriter.writeBoolean:(Ljava/lang/String;Z)V
33: StackMap locals:
StackMap stack:
aload 4
invokevirtual com.mongodb.bulk.UpdateRequest.getCollation:()Lcom/mongodb/client/model/Collation;
ifnull 37
34: aload 1
ldc "collation"
invokeinterface org.bson.BsonWriter.writeName:(Ljava/lang/String;)V
35: aload 4
invokevirtual com.mongodb.bulk.UpdateRequest.getCollation:()Lcom/mongodb/client/model/Collation;
invokevirtual com.mongodb.client.model.Collation.asDocument:()Lorg/bson/BsonDocument;
astore 6
start local 6 36: aload 6
invokestatic com.mongodb.operation.BulkWriteBatch.getCodec:(Lorg/bson/BsonDocument;)Lorg/bson/codecs/Codec;
aload 1
aload 6
invokestatic org.bson.codecs.EncoderContext.builder:()Lorg/bson/codecs/EncoderContext$Builder;
invokevirtual org.bson.codecs.EncoderContext$Builder.build:()Lorg/bson/codecs/EncoderContext;
invokeinterface org.bson.codecs.Codec.encode:(Lorg/bson/BsonWriter;Ljava/lang/Object;Lorg/bson/codecs/EncoderContext;)V
end local 6 37: StackMap locals:
StackMap stack:
aload 4
invokevirtual com.mongodb.bulk.UpdateRequest.getArrayFilters:()Ljava/util/List;
ifnull 44
38: aload 1
ldc "arrayFilters"
invokeinterface org.bson.BsonWriter.writeStartArray:(Ljava/lang/String;)V
39: aload 4
invokevirtual com.mongodb.bulk.UpdateRequest.getArrayFilters:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
goto 42
StackMap locals: com.mongodb.operation.BulkWriteBatch$WriteRequestEncoder org.bson.BsonWriter com.mongodb.bulk.WriteRequest org.bson.codecs.EncoderContext com.mongodb.bulk.UpdateRequest org.bson.BsonValue top java.util.Iterator
StackMap stack:
40: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.bson.BsonDocument
astore 6
start local 6 41: aload 6
invokestatic com.mongodb.operation.BulkWriteBatch.getCodec:(Lorg/bson/BsonDocument;)Lorg/bson/codecs/Codec;
aload 1
aload 6
invokestatic org.bson.codecs.EncoderContext.builder:()Lorg/bson/codecs/EncoderContext$Builder;
invokevirtual org.bson.codecs.EncoderContext$Builder.build:()Lorg/bson/codecs/EncoderContext;
invokeinterface org.bson.codecs.Codec.encode:(Lorg/bson/BsonWriter;Ljava/lang/Object;Lorg/bson/codecs/EncoderContext;)V
end local 6 42: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 40
43: aload 1
invokeinterface org.bson.BsonWriter.writeEndArray:()V
44: StackMap locals: com.mongodb.operation.BulkWriteBatch$WriteRequestEncoder org.bson.BsonWriter com.mongodb.bulk.WriteRequest org.bson.codecs.EncoderContext com.mongodb.bulk.UpdateRequest org.bson.BsonValue
StackMap stack:
aload 1
invokeinterface org.bson.BsonWriter.writeEndDocument:()V
end local 5 end local 4 45: goto 58
46: StackMap locals:
StackMap stack:
aload 2
checkcast com.mongodb.bulk.DeleteRequest
astore 4
start local 4 47: aload 1
invokeinterface org.bson.BsonWriter.writeStartDocument:()V
48: aload 1
ldc "q"
invokeinterface org.bson.BsonWriter.writeName:(Ljava/lang/String;)V
49: aload 4
invokevirtual com.mongodb.bulk.DeleteRequest.getFilter:()Lorg/bson/BsonDocument;
invokestatic com.mongodb.operation.BulkWriteBatch.getCodec:(Lorg/bson/BsonDocument;)Lorg/bson/codecs/Codec;
aload 1
aload 4
invokevirtual com.mongodb.bulk.DeleteRequest.getFilter:()Lorg/bson/BsonDocument;
invokestatic org.bson.codecs.EncoderContext.builder:()Lorg/bson/codecs/EncoderContext$Builder;
invokevirtual org.bson.codecs.EncoderContext$Builder.build:()Lorg/bson/codecs/EncoderContext;
invokeinterface org.bson.codecs.Codec.encode:(Lorg/bson/BsonWriter;Ljava/lang/Object;Lorg/bson/codecs/EncoderContext;)V
50: aload 1
ldc "limit"
aload 4
invokevirtual com.mongodb.bulk.DeleteRequest.isMulti:()Z
ifeq 51
iconst_0
goto 52
StackMap locals: com.mongodb.operation.BulkWriteBatch$WriteRequestEncoder org.bson.BsonWriter com.mongodb.bulk.WriteRequest org.bson.codecs.EncoderContext com.mongodb.bulk.DeleteRequest
StackMap stack: org.bson.BsonWriter java.lang.String
51: iconst_1
StackMap locals: com.mongodb.operation.BulkWriteBatch$WriteRequestEncoder org.bson.BsonWriter com.mongodb.bulk.WriteRequest org.bson.codecs.EncoderContext com.mongodb.bulk.DeleteRequest
StackMap stack: org.bson.BsonWriter java.lang.String int
52: invokeinterface org.bson.BsonWriter.writeInt32:(Ljava/lang/String;I)V
53: aload 4
invokevirtual com.mongodb.bulk.DeleteRequest.getCollation:()Lcom/mongodb/client/model/Collation;
ifnull 57
54: aload 1
ldc "collation"
invokeinterface org.bson.BsonWriter.writeName:(Ljava/lang/String;)V
55: aload 4
invokevirtual com.mongodb.bulk.DeleteRequest.getCollation:()Lcom/mongodb/client/model/Collation;
invokevirtual com.mongodb.client.model.Collation.asDocument:()Lorg/bson/BsonDocument;
astore 5
start local 5 56: aload 5
invokestatic com.mongodb.operation.BulkWriteBatch.getCodec:(Lorg/bson/BsonDocument;)Lorg/bson/codecs/Codec;
aload 1
aload 5
invokestatic org.bson.codecs.EncoderContext.builder:()Lorg/bson/codecs/EncoderContext$Builder;
invokevirtual org.bson.codecs.EncoderContext$Builder.build:()Lorg/bson/codecs/EncoderContext;
invokeinterface org.bson.codecs.Codec.encode:(Lorg/bson/BsonWriter;Ljava/lang/Object;Lorg/bson/codecs/EncoderContext;)V
end local 5 57: StackMap locals:
StackMap stack:
aload 1
invokeinterface org.bson.BsonWriter.writeEndDocument:()V
end local 4 58: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 59 0 this Lcom/mongodb/operation/BulkWriteBatch$WriteRequestEncoder;
0 59 1 writer Lorg/bson/BsonWriter;
0 59 2 writeRequest Lcom/mongodb/bulk/WriteRequest;
0 59 3 encoderContext Lorg/bson/codecs/EncoderContext;
2 3 4 document Lorg/bson/BsonDocument;
6 45 4 update Lcom/mongodb/bulk/UpdateRequest;
10 45 5 updateValue Lorg/bson/BsonValue;
17 22 6 fieldTrackingBsonWriter Lcom/mongodb/internal/connection/FieldTrackingBsonWriter;
26 27 6 cur Lorg/bson/BsonValue;
36 37 6 collation Lorg/bson/BsonDocument;
41 42 6 cur Lorg/bson/BsonDocument;
47 58 4 deleteRequest Lcom/mongodb/bulk/DeleteRequest;
56 57 5 collation Lorg/bson/BsonDocument;
MethodParameters:
Name Flags
writer final
writeRequest final
encoderContext final
public java.lang.Class<com.mongodb.bulk.WriteRequest> getEncoderClass();
descriptor: ()Ljava/lang/Class;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc Lcom/mongodb/bulk/WriteRequest;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/operation/BulkWriteBatch$WriteRequestEncoder;
Signature: ()Ljava/lang/Class<Lcom/mongodb/bulk/WriteRequest;>;
public void encode(org.bson.BsonWriter, java.lang.Object, org.bson.codecs.EncoderContext);
descriptor: (Lorg/bson/BsonWriter;Ljava/lang/Object;Lorg/bson/codecs/EncoderContext;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=4, locals=4, args_size=4
0: aload 0
aload 1
aload 2
checkcast com.mongodb.bulk.WriteRequest
aload 3
invokevirtual com.mongodb.operation.BulkWriteBatch$WriteRequestEncoder.encode:(Lorg/bson/BsonWriter;Lcom/mongodb/bulk/WriteRequest;Lorg/bson/codecs/EncoderContext;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Lorg/bson/codecs/Encoder<Lcom/mongodb/bulk/WriteRequest;>;
SourceFile: "BulkWriteBatch.java"
NestHost: com.mongodb.operation.BulkWriteBatch
InnerClasses:
public final Type = com.mongodb.bulk.WriteRequest$Type of com.mongodb.bulk.WriteRequest
WriteRequestEncoder = com.mongodb.operation.BulkWriteBatch$WriteRequestEncoder of com.mongodb.operation.BulkWriteBatch
public final Builder = org.bson.codecs.EncoderContext$Builder of org.bson.codecs.EncoderContext