public final class com.mongodb.internal.operation.IndexHelper
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.mongodb.internal.operation.IndexHelper
super_class: java.lang.Object
{
public static java.util.List<java.lang.String> getIndexNames(java.util.List<com.mongodb.client.model.IndexModel>, org.bson.codecs.configuration.CodecRegistry);
descriptor: (Ljava/util/List;Lorg/bson/codecs/configuration/CodecRegistry;)Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
aload 0
invokeinterface java.util.List.size:()I
invokespecial java.util.ArrayList.<init>:(I)V
astore 2
start local 2 1: aload 0
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 8
StackMap locals: java.util.List org.bson.codecs.configuration.CodecRegistry java.util.List top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.mongodb.client.model.IndexModel
astore 3
start local 3 3: aload 3
invokevirtual com.mongodb.client.model.IndexModel.getOptions:()Lcom/mongodb/client/model/IndexOptions;
invokevirtual com.mongodb.client.model.IndexOptions.getName:()Ljava/lang/String;
astore 5
start local 5 4: aload 5
ifnull 7
5: aload 2
aload 5
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
6: goto 8
7: StackMap locals: java.util.List org.bson.codecs.configuration.CodecRegistry java.util.List com.mongodb.client.model.IndexModel java.util.Iterator java.lang.String
StackMap stack:
aload 2
aload 3
invokevirtual com.mongodb.client.model.IndexModel.getKeys:()Lorg/bson/conversions/Bson;
ldc Lorg/bson/BsonDocument;
aload 1
invokeinterface org.bson.conversions.Bson.toBsonDocument:(Ljava/lang/Class;Lorg/bson/codecs/configuration/CodecRegistry;)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 5 end local 3 8: StackMap locals: java.util.List org.bson.codecs.configuration.CodecRegistry java.util.List top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
9: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 indexes Ljava/util/List<Lcom/mongodb/client/model/IndexModel;>;
0 10 1 codecRegistry Lorg/bson/codecs/configuration/CodecRegistry;
1 10 2 indexNames Ljava/util/List<Ljava/lang/String;>;
3 8 3 index Lcom/mongodb/client/model/IndexModel;
4 8 5 name Ljava/lang/String;
Signature: (Ljava/util/List<Lcom/mongodb/client/model/IndexModel;>;Lorg/bson/codecs/configuration/CodecRegistry;)Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
indexes final
codecRegistry final
public static java.lang.String generateIndexName(org.bson.BsonDocument);
descriptor: (Lorg/bson/BsonDocument;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: aload 0
invokevirtual org.bson.BsonDocument.keySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 12
StackMap locals: org.bson.BsonDocument java.lang.StringBuilder top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 3: aload 1
invokevirtual java.lang.StringBuilder.length:()I
ifeq 5
4: aload 1
bipush 95
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
5: StackMap locals: org.bson.BsonDocument java.lang.StringBuilder java.lang.String java.util.Iterator
StackMap stack:
aload 1
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 95
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
6: aload 0
aload 2
invokevirtual org.bson.BsonDocument.get:(Ljava/lang/Object;)Lorg/bson/BsonValue;
astore 4
start local 4 7: aload 4
instanceof org.bson.BsonNumber
ifeq 10
8: aload 1
aload 4
checkcast org.bson.BsonNumber
invokevirtual org.bson.BsonNumber.intValue:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
pop
9: goto 12
StackMap locals: org.bson.BsonValue
StackMap stack:
10: aload 4
instanceof org.bson.BsonString
ifeq 12
11: aload 1
aload 4
checkcast org.bson.BsonString
invokevirtual org.bson.BsonString.getValue:()Ljava/lang/String;
bipush 32
bipush 95
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 4 end local 2 12: StackMap locals: org.bson.BsonDocument java.lang.StringBuilder top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
13: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 index Lorg/bson/BsonDocument;
1 14 1 indexName Ljava/lang/StringBuilder;
3 12 2 keyNames Ljava/lang/String;
7 12 4 ascOrDescValue Lorg/bson/BsonValue;
MethodParameters:
Name Flags
index final
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
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/internal/operation/IndexHelper;
}
SourceFile: "IndexHelper.java"