public class com.mongodb.operation.CreateIndexesOperation implements com.mongodb.operation.AsyncWriteOperation<java.lang.Void>, com.mongodb.operation.WriteOperation<java.lang.Void>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.mongodb.operation.CreateIndexesOperation
super_class: java.lang.Object
{
private final com.mongodb.MongoNamespace namespace;
descriptor: Lcom/mongodb/MongoNamespace;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.List<com.mongodb.bulk.IndexRequest> requests;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lcom/mongodb/bulk/IndexRequest;>;
private final com.mongodb.WriteConcern writeConcern;
descriptor: Lcom/mongodb/WriteConcern;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private long maxTimeMS;
descriptor: J
flags: (0x0002) ACC_PRIVATE
public void <init>(com.mongodb.MongoNamespace, java.util.List<com.mongodb.bulk.IndexRequest>);
descriptor: (Lcom/mongodb/MongoNamespace;Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
aconst_null
invokespecial com.mongodb.operation.CreateIndexesOperation.<init>:(Lcom/mongodb/MongoNamespace;Ljava/util/List;Lcom/mongodb/WriteConcern;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/operation/CreateIndexesOperation;
0 2 1 namespace Lcom/mongodb/MongoNamespace;
0 2 2 requests Ljava/util/List<Lcom/mongodb/bulk/IndexRequest;>;
Signature: (Lcom/mongodb/MongoNamespace;Ljava/util/List<Lcom/mongodb/bulk/IndexRequest;>;)V
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
namespace final
requests final
public void <init>(com.mongodb.MongoNamespace, java.util.List<com.mongodb.bulk.IndexRequest>, com.mongodb.WriteConcern);
descriptor: (Lcom/mongodb/MongoNamespace;Ljava/util/List;Lcom/mongodb/WriteConcern;)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 java.lang.Object.<init>:()V
1: aload 0
ldc "namespace"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.mongodb.MongoNamespace
putfield com.mongodb.operation.CreateIndexesOperation.namespace:Lcom/mongodb/MongoNamespace;
2: aload 0
ldc "indexRequests"
aload 2
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.List
putfield com.mongodb.operation.CreateIndexesOperation.requests:Ljava/util/List;
3: aload 0
aload 3
putfield com.mongodb.operation.CreateIndexesOperation.writeConcern:Lcom/mongodb/WriteConcern;
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/mongodb/operation/CreateIndexesOperation;
0 5 1 namespace Lcom/mongodb/MongoNamespace;
0 5 2 requests Ljava/util/List<Lcom/mongodb/bulk/IndexRequest;>;
0 5 3 writeConcern Lcom/mongodb/WriteConcern;
Signature: (Lcom/mongodb/MongoNamespace;Ljava/util/List<Lcom/mongodb/bulk/IndexRequest;>;Lcom/mongodb/WriteConcern;)V
MethodParameters:
Name Flags
namespace final
requests final
writeConcern final
public com.mongodb.WriteConcern getWriteConcern();
descriptor: ()Lcom/mongodb/WriteConcern;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.operation.CreateIndexesOperation.writeConcern:Lcom/mongodb/WriteConcern;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/operation/CreateIndexesOperation;
public java.util.List<com.mongodb.bulk.IndexRequest> getRequests();
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.operation.CreateIndexesOperation.requests:Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/operation/CreateIndexesOperation;
Signature: ()Ljava/util/List<Lcom/mongodb/bulk/IndexRequest;>;
public java.util.List<java.lang.String> getIndexNames();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: new java.util.ArrayList
dup
aload 0
getfield com.mongodb.operation.CreateIndexesOperation.requests:Ljava/util/List;
invokeinterface java.util.List.size:()I
invokespecial java.util.ArrayList.<init>:(I)V
astore 1
start local 1 1: aload 0
getfield com.mongodb.operation.CreateIndexesOperation.requests:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 7
StackMap locals: com.mongodb.operation.CreateIndexesOperation java.util.List top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.mongodb.bulk.IndexRequest
astore 2
start local 2 3: aload 2
invokevirtual com.mongodb.bulk.IndexRequest.getName:()Ljava/lang/String;
ifnull 6
4: aload 1
aload 2
invokevirtual com.mongodb.bulk.IndexRequest.getName:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
5: goto 7
6: StackMap locals: com.mongodb.operation.CreateIndexesOperation java.util.List com.mongodb.bulk.IndexRequest java.util.Iterator
StackMap stack:
aload 1
aload 2
invokevirtual com.mongodb.bulk.IndexRequest.getKeys:()Lorg/bson/BsonDocument;
invokestatic com.mongodb.internal.operation.IndexHelper.generateIndexName:(Lorg/bson/BsonDocument;)Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 2 7: StackMap locals: com.mongodb.operation.CreateIndexesOperation java.util.List top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
8: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/mongodb/operation/CreateIndexesOperation;
1 9 1 indexNames Ljava/util/List<Ljava/lang/String;>;
3 7 2 request Lcom/mongodb/bulk/IndexRequest;
Signature: ()Ljava/util/List<Ljava/lang/String;>;
public long getMaxTime(java.util.concurrent.TimeUnit);
descriptor: (Ljava/util/concurrent/TimeUnit;)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: ldc "timeUnit"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 1
aload 0
getfield com.mongodb.operation.CreateIndexesOperation.maxTimeMS:J
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual java.util.concurrent.TimeUnit.convert:(JLjava/util/concurrent/TimeUnit;)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/operation/CreateIndexesOperation;
0 2 1 timeUnit Ljava/util/concurrent/TimeUnit;
MethodParameters:
Name Flags
timeUnit final
public com.mongodb.operation.CreateIndexesOperation maxTime(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)Lcom/mongodb/operation/CreateIndexesOperation;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 3 0: ldc "timeUnit"
aload 3
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: ldc "maxTime >= 0"
lload 1
lconst_0
lcmp
iflt 2
iconst_1
goto 3
StackMap locals:
StackMap stack: java.lang.String
2: iconst_0
StackMap locals: com.mongodb.operation.CreateIndexesOperation long java.util.concurrent.TimeUnit
StackMap stack: java.lang.String int
3: invokestatic com.mongodb.assertions.Assertions.isTrueArgument:(Ljava/lang/String;Z)V
4: aload 0
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
lload 1
aload 3
invokevirtual java.util.concurrent.TimeUnit.convert:(JLjava/util/concurrent/TimeUnit;)J
putfield com.mongodb.operation.CreateIndexesOperation.maxTimeMS:J
5: aload 0
areturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/mongodb/operation/CreateIndexesOperation;
0 6 1 maxTime J
0 6 3 timeUnit Ljava/util/concurrent/TimeUnit;
MethodParameters:
Name Flags
maxTime final
timeUnit final
public java.lang.Void execute(com.mongodb.binding.WriteBinding);
descriptor: (Lcom/mongodb/binding/WriteBinding;)Ljava/lang/Void;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
new com.mongodb.operation.CreateIndexesOperation$1
dup
aload 0
aload 1
invokespecial com.mongodb.operation.CreateIndexesOperation$1.<init>:(Lcom/mongodb/operation/CreateIndexesOperation;Lcom/mongodb/binding/WriteBinding;)V
invokestatic com.mongodb.operation.OperationHelper.withConnection:(Lcom/mongodb/binding/WriteBinding;Lcom/mongodb/operation/OperationHelper$CallableWithConnection;)Ljava/lang/Object;
checkcast java.lang.Void
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/operation/CreateIndexesOperation;
0 1 1 binding Lcom/mongodb/binding/WriteBinding;
MethodParameters:
Name Flags
binding final
public void executeAsync(com.mongodb.binding.AsyncWriteBinding, com.mongodb.async.SingleResultCallback<java.lang.Void>);
descriptor: (Lcom/mongodb/binding/AsyncWriteBinding;Lcom/mongodb/async/SingleResultCallback;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
new com.mongodb.operation.CreateIndexesOperation$2
dup
aload 0
aload 2
aload 1
invokespecial com.mongodb.operation.CreateIndexesOperation$2.<init>:(Lcom/mongodb/operation/CreateIndexesOperation;Lcom/mongodb/async/SingleResultCallback;Lcom/mongodb/binding/AsyncWriteBinding;)V
invokestatic com.mongodb.operation.OperationHelper.withAsyncConnection:(Lcom/mongodb/binding/AsyncWriteBinding;Lcom/mongodb/operation/OperationHelper$AsyncCallableWithConnection;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/operation/CreateIndexesOperation;
0 2 1 binding Lcom/mongodb/binding/AsyncWriteBinding;
0 2 2 callback Lcom/mongodb/async/SingleResultCallback<Ljava/lang/Void;>;
Signature: (Lcom/mongodb/binding/AsyncWriteBinding;Lcom/mongodb/async/SingleResultCallback<Ljava/lang/Void;>;)V
MethodParameters:
Name Flags
binding final
callback final
private org.bson.BsonDocument getIndex(com.mongodb.bulk.IndexRequest);
descriptor: (Lcom/mongodb/bulk/IndexRequest;)Lorg/bson/BsonDocument;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: new org.bson.BsonDocument
dup
invokespecial org.bson.BsonDocument.<init>:()V
astore 2
start local 2 1: aload 2
ldc "key"
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getKeys:()Lorg/bson/BsonDocument;
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
pop
2: aload 2
ldc "name"
3: new org.bson.BsonString
dup
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getName:()Ljava/lang/String;
ifnull 4
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getName:()Ljava/lang/String;
goto 5
StackMap locals: com.mongodb.operation.CreateIndexesOperation com.mongodb.bulk.IndexRequest org.bson.BsonDocument
StackMap stack: org.bson.BsonDocument java.lang.String new 3 new 3
4: aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getKeys:()Lorg/bson/BsonDocument;
invokestatic com.mongodb.internal.operation.IndexHelper.generateIndexName:(Lorg/bson/BsonDocument;)Ljava/lang/String;
StackMap locals: com.mongodb.operation.CreateIndexesOperation com.mongodb.bulk.IndexRequest org.bson.BsonDocument
StackMap stack: org.bson.BsonDocument java.lang.String new 3 new 3 java.lang.String
5: invokespecial org.bson.BsonString.<init>:(Ljava/lang/String;)V
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
pop
6: aload 2
ldc "ns"
new org.bson.BsonString
dup
aload 0
getfield com.mongodb.operation.CreateIndexesOperation.namespace:Lcom/mongodb/MongoNamespace;
invokevirtual com.mongodb.MongoNamespace.getFullName:()Ljava/lang/String;
invokespecial org.bson.BsonString.<init>:(Ljava/lang/String;)V
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
pop
7: aload 1
invokevirtual com.mongodb.bulk.IndexRequest.isBackground:()Z
ifeq 9
8: aload 2
ldc "background"
getstatic org.bson.BsonBoolean.TRUE:Lorg/bson/BsonBoolean;
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
pop
9: StackMap locals:
StackMap stack:
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.isUnique:()Z
ifeq 11
10: aload 2
ldc "unique"
getstatic org.bson.BsonBoolean.TRUE:Lorg/bson/BsonBoolean;
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
pop
11: StackMap locals:
StackMap stack:
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.isSparse:()Z
ifeq 13
12: aload 2
ldc "sparse"
getstatic org.bson.BsonBoolean.TRUE:Lorg/bson/BsonBoolean;
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
pop
13: StackMap locals:
StackMap stack:
aload 1
getstatic java.util.concurrent.TimeUnit.SECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual com.mongodb.bulk.IndexRequest.getExpireAfter:(Ljava/util/concurrent/TimeUnit;)Ljava/lang/Long;
ifnull 15
14: aload 2
ldc "expireAfterSeconds"
new org.bson.BsonInt64
dup
aload 1
getstatic java.util.concurrent.TimeUnit.SECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual com.mongodb.bulk.IndexRequest.getExpireAfter:(Ljava/util/concurrent/TimeUnit;)Ljava/lang/Long;
invokevirtual java.lang.Long.longValue:()J
invokespecial org.bson.BsonInt64.<init>:(J)V
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
pop
15: StackMap locals:
StackMap stack:
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getVersion:()Ljava/lang/Integer;
ifnull 17
16: aload 2
ldc "v"
new org.bson.BsonInt32
dup
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getVersion:()Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
invokespecial org.bson.BsonInt32.<init>:(I)V
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
pop
17: StackMap locals:
StackMap stack:
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getWeights:()Lorg/bson/BsonDocument;
ifnull 19
18: aload 2
ldc "weights"
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getWeights:()Lorg/bson/BsonDocument;
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
pop
19: StackMap locals:
StackMap stack:
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getDefaultLanguage:()Ljava/lang/String;
ifnull 21
20: aload 2
ldc "default_language"
new org.bson.BsonString
dup
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getDefaultLanguage:()Ljava/lang/String;
invokespecial org.bson.BsonString.<init>:(Ljava/lang/String;)V
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
pop
21: StackMap locals:
StackMap stack:
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getLanguageOverride:()Ljava/lang/String;
ifnull 23
22: aload 2
ldc "language_override"
new org.bson.BsonString
dup
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getLanguageOverride:()Ljava/lang/String;
invokespecial org.bson.BsonString.<init>:(Ljava/lang/String;)V
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
pop
23: StackMap locals:
StackMap stack:
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getTextVersion:()Ljava/lang/Integer;
ifnull 25
24: aload 2
ldc "textIndexVersion"
new org.bson.BsonInt32
dup
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getTextVersion:()Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
invokespecial org.bson.BsonInt32.<init>:(I)V
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
pop
25: StackMap locals:
StackMap stack:
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getSphereVersion:()Ljava/lang/Integer;
ifnull 27
26: aload 2
ldc "2dsphereIndexVersion"
new org.bson.BsonInt32
dup
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getSphereVersion:()Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
invokespecial org.bson.BsonInt32.<init>:(I)V
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
pop
27: StackMap locals:
StackMap stack:
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getBits:()Ljava/lang/Integer;
ifnull 29
28: aload 2
ldc "bits"
new org.bson.BsonInt32
dup
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getBits:()Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
invokespecial org.bson.BsonInt32.<init>:(I)V
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
pop
29: StackMap locals:
StackMap stack:
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getMin:()Ljava/lang/Double;
ifnull 31
30: aload 2
ldc "min"
new org.bson.BsonDouble
dup
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getMin:()Ljava/lang/Double;
invokevirtual java.lang.Double.doubleValue:()D
invokespecial org.bson.BsonDouble.<init>:(D)V
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
pop
31: StackMap locals:
StackMap stack:
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getMax:()Ljava/lang/Double;
ifnull 33
32: aload 2
ldc "max"
new org.bson.BsonDouble
dup
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getMax:()Ljava/lang/Double;
invokevirtual java.lang.Double.doubleValue:()D
invokespecial org.bson.BsonDouble.<init>:(D)V
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
pop
33: StackMap locals:
StackMap stack:
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getBucketSize:()Ljava/lang/Double;
ifnull 35
34: aload 2
ldc "bucketSize"
new org.bson.BsonDouble
dup
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getBucketSize:()Ljava/lang/Double;
invokevirtual java.lang.Double.doubleValue:()D
invokespecial org.bson.BsonDouble.<init>:(D)V
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
pop
35: StackMap locals:
StackMap stack:
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getDropDups:()Z
ifeq 37
36: aload 2
ldc "dropDups"
getstatic org.bson.BsonBoolean.TRUE:Lorg/bson/BsonBoolean;
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
pop
37: StackMap locals:
StackMap stack:
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getStorageEngine:()Lorg/bson/BsonDocument;
ifnull 39
38: aload 2
ldc "storageEngine"
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getStorageEngine:()Lorg/bson/BsonDocument;
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
pop
39: StackMap locals:
StackMap stack:
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getPartialFilterExpression:()Lorg/bson/BsonDocument;
ifnull 41
40: aload 2
ldc "partialFilterExpression"
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getPartialFilterExpression:()Lorg/bson/BsonDocument;
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
pop
41: StackMap locals:
StackMap stack:
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getCollation:()Lcom/mongodb/client/model/Collation;
ifnull 43
42: aload 2
ldc "collation"
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getCollation:()Lcom/mongodb/client/model/Collation;
invokevirtual com.mongodb.client.model.Collation.asDocument:()Lorg/bson/BsonDocument;
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
pop
43: StackMap locals:
StackMap stack:
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getWildcardProjection:()Lorg/bson/BsonDocument;
ifnull 45
44: aload 2
ldc "wildcardProjection"
aload 1
invokevirtual com.mongodb.bulk.IndexRequest.getWildcardProjection:()Lorg/bson/BsonDocument;
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
pop
45: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 46 0 this Lcom/mongodb/operation/CreateIndexesOperation;
0 46 1 request Lcom/mongodb/bulk/IndexRequest;
1 46 2 index Lorg/bson/BsonDocument;
MethodParameters:
Name Flags
request final
private org.bson.BsonDocument getCommand(com.mongodb.connection.ConnectionDescription);
descriptor: (Lcom/mongodb/connection/ConnectionDescription;)Lorg/bson/BsonDocument;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=6, args_size=2
start local 0 start local 1 0: new org.bson.BsonDocument
dup
ldc "createIndexes"
new org.bson.BsonString
dup
aload 0
getfield com.mongodb.operation.CreateIndexesOperation.namespace:Lcom/mongodb/MongoNamespace;
invokevirtual com.mongodb.MongoNamespace.getCollectionName:()Ljava/lang/String;
invokespecial org.bson.BsonString.<init>:(Ljava/lang/String;)V
invokespecial org.bson.BsonDocument.<init>:(Ljava/lang/String;Lorg/bson/BsonValue;)V
astore 2
start local 2 1: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 3
start local 3 2: aload 0
getfield com.mongodb.operation.CreateIndexesOperation.requests:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 5
StackMap locals: com.mongodb.operation.CreateIndexesOperation com.mongodb.connection.ConnectionDescription org.bson.BsonDocument java.util.List top java.util.Iterator
StackMap stack:
3: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.mongodb.bulk.IndexRequest
astore 4
start local 4 4: aload 3
aload 0
aload 4
invokevirtual com.mongodb.operation.CreateIndexesOperation.getIndex:(Lcom/mongodb/bulk/IndexRequest;)Lorg/bson/BsonDocument;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 5: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
6: aload 2
ldc "indexes"
new org.bson.BsonArray
dup
aload 3
invokespecial org.bson.BsonArray.<init>:(Ljava/util/List;)V
invokevirtual org.bson.BsonDocument.put:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonValue;
pop
7: aload 2
ldc "maxTimeMS"
aload 0
getfield com.mongodb.operation.CreateIndexesOperation.maxTimeMS:J
invokestatic com.mongodb.operation.DocumentHelper.putIfNotZero:(Lorg/bson/BsonDocument;Ljava/lang/String;J)V
8: aload 0
getfield com.mongodb.operation.CreateIndexesOperation.writeConcern:Lcom/mongodb/WriteConcern;
aload 2
aload 1
invokestatic com.mongodb.internal.operation.WriteConcernHelper.appendWriteConcernToCommand:(Lcom/mongodb/WriteConcern;Lorg/bson/BsonDocument;Lcom/mongodb/connection/ConnectionDescription;)V
9: aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/mongodb/operation/CreateIndexesOperation;
0 10 1 description Lcom/mongodb/connection/ConnectionDescription;
1 10 2 command Lorg/bson/BsonDocument;
2 10 3 values Ljava/util/List<Lorg/bson/BsonDocument;>;
4 5 4 request Lcom/mongodb/bulk/IndexRequest;
MethodParameters:
Name Flags
description final
private com.mongodb.MongoException translateException(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Lcom/mongodb/MongoException;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof com.mongodb.MongoCommandException
ifeq 1
aload 0
aload 1
checkcast com.mongodb.MongoCommandException
invokevirtual com.mongodb.operation.CreateIndexesOperation.checkForDuplicateKeyError:(Lcom/mongodb/MongoCommandException;)Lcom/mongodb/MongoException;
goto 2
1: StackMap locals:
StackMap stack:
aload 1
invokestatic com.mongodb.MongoException.fromThrowable:(Ljava/lang/Throwable;)Lcom/mongodb/MongoException;
2: StackMap locals:
StackMap stack: com.mongodb.MongoException
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/operation/CreateIndexesOperation;
0 3 1 t Ljava/lang/Throwable;
MethodParameters:
Name Flags
t final
private com.mongodb.MongoException checkForDuplicateKeyError(com.mongodb.MongoCommandException);
descriptor: (Lcom/mongodb/MongoCommandException;)Lcom/mongodb/MongoException;
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual com.mongodb.MongoCommandException.getCode:()I
invokestatic com.mongodb.ErrorCategory.fromErrorCode:(I)Lcom/mongodb/ErrorCategory;
getstatic com.mongodb.ErrorCategory.DUPLICATE_KEY:Lcom/mongodb/ErrorCategory;
if_acmpne 2
1: new com.mongodb.DuplicateKeyException
dup
aload 1
invokevirtual com.mongodb.MongoCommandException.getResponse:()Lorg/bson/BsonDocument;
aload 1
invokevirtual com.mongodb.MongoCommandException.getServerAddress:()Lcom/mongodb/ServerAddress;
iconst_0
iconst_0
aconst_null
invokestatic com.mongodb.WriteConcernResult.acknowledged:(IZLorg/bson/BsonValue;)Lcom/mongodb/WriteConcernResult;
invokespecial com.mongodb.DuplicateKeyException.<init>:(Lorg/bson/BsonDocument;Lcom/mongodb/ServerAddress;Lcom/mongodb/WriteConcernResult;)V
areturn
2: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/operation/CreateIndexesOperation;
0 3 1 e Lcom/mongodb/MongoCommandException;
MethodParameters:
Name Flags
e final
public java.lang.Object execute(com.mongodb.binding.WriteBinding);
descriptor: (Lcom/mongodb/binding/WriteBinding;)Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokevirtual com.mongodb.operation.CreateIndexesOperation.execute:(Lcom/mongodb/binding/WriteBinding;)Ljava/lang/Void;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Lcom/mongodb/operation/AsyncWriteOperation<Ljava/lang/Void;>;Lcom/mongodb/operation/WriteOperation<Ljava/lang/Void;>;
SourceFile: "CreateIndexesOperation.java"
NestMembers:
com.mongodb.operation.CreateIndexesOperation$1 com.mongodb.operation.CreateIndexesOperation$2 com.mongodb.operation.CreateIndexesOperation$2$1 com.mongodb.operation.CreateIndexesOperation$2$1$1
InnerClasses:
com.mongodb.operation.CreateIndexesOperation$1
com.mongodb.operation.CreateIndexesOperation$2
abstract AsyncCallableWithConnection = com.mongodb.operation.OperationHelper$AsyncCallableWithConnection of com.mongodb.operation.OperationHelper
abstract CallableWithConnection = com.mongodb.operation.OperationHelper$CallableWithConnection of com.mongodb.operation.OperationHelper
RuntimeVisibleAnnotations:
java.lang.Deprecated()