public class org.h2.index.TreeIndex extends org.h2.index.BaseIndex
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.h2.index.TreeIndex
super_class: org.h2.index.BaseIndex
{
private org.h2.index.TreeNode root;
descriptor: Lorg/h2/index/TreeNode;
flags: (0x0002) ACC_PRIVATE
private final org.h2.table.PageStoreTable tableData;
descriptor: Lorg/h2/table/PageStoreTable;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private long rowCount;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private boolean closed;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public void <init>(org.h2.table.PageStoreTable, int, java.lang.String, org.h2.table.IndexColumn[], org.h2.index.IndexType);
descriptor: (Lorg/h2/table/PageStoreTable;ILjava/lang/String;[Lorg/h2/table/IndexColumn;Lorg/h2/index/IndexType;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
aload 1
iload 2
aload 3
aload 4
aload 5
invokespecial org.h2.index.BaseIndex.<init>:(Lorg/h2/table/Table;ILjava/lang/String;[Lorg/h2/table/IndexColumn;Lorg/h2/index/IndexType;)V
1: aload 0
aload 1
putfield org.h2.index.TreeIndex.tableData:Lorg/h2/table/PageStoreTable;
2: aload 0
getfield org.h2.index.TreeIndex.database:Lorg/h2/engine/Database;
invokevirtual org.h2.engine.Database.isStarting:()Z
ifne 4
3: aload 4
invokestatic org.h2.index.TreeIndex.checkIndexColumnTypes:([Lorg/h2/table/IndexColumn;)V
4: StackMap locals: org.h2.index.TreeIndex org.h2.table.PageStoreTable int java.lang.String org.h2.table.IndexColumn[] org.h2.index.IndexType
StackMap stack:
return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/h2/index/TreeIndex;
0 5 1 table Lorg/h2/table/PageStoreTable;
0 5 2 id I
0 5 3 indexName Ljava/lang/String;
0 5 4 columns [Lorg/h2/table/IndexColumn;
0 5 5 indexType Lorg/h2/index/IndexType;
MethodParameters:
Name Flags
table
id
indexName
columns
indexType
public void close(org.h2.engine.Session);
descriptor: (Lorg/h2/engine/Session;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aconst_null
putfield org.h2.index.TreeIndex.root:Lorg/h2/index/TreeNode;
1: aload 0
iconst_1
putfield org.h2.index.TreeIndex.closed:Z
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/h2/index/TreeIndex;
0 3 1 session Lorg/h2/engine/Session;
MethodParameters:
Name Flags
session
public void add(org.h2.engine.Session, org.h2.result.Row);
descriptor: (Lorg/h2/engine/Session;Lorg/h2/result/Row;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.h2.index.TreeIndex.closed:Z
ifeq 2
1: invokestatic org.h2.message.DbException.throwInternalError:()Ljava/lang/RuntimeException;
athrow
2: StackMap locals:
StackMap stack:
new org.h2.index.TreeNode
dup
aload 2
invokespecial org.h2.index.TreeNode.<init>:(Lorg/h2/result/Row;)V
astore 3
start local 3 3: aload 0
getfield org.h2.index.TreeIndex.root:Lorg/h2/index/TreeNode;
astore 4
start local 4 4: aload 4
astore 5
start local 5 5: iconst_1
istore 6
start local 6 6: StackMap locals: org.h2.index.TreeIndex org.h2.engine.Session org.h2.result.Row org.h2.index.TreeNode org.h2.index.TreeNode org.h2.index.TreeNode int
StackMap stack:
aload 4
ifnonnull 13
7: aload 5
ifnonnull 11
8: aload 0
aload 3
putfield org.h2.index.TreeIndex.root:Lorg/h2/index/TreeNode;
9: aload 0
dup
getfield org.h2.index.TreeIndex.rowCount:J
lconst_1
ladd
putfield org.h2.index.TreeIndex.rowCount:J
10: return
11: StackMap locals:
StackMap stack:
aload 5
iload 6
aload 3
invokestatic org.h2.index.TreeIndex.set:(Lorg/h2/index/TreeNode;ZLorg/h2/index/TreeNode;)V
12: goto 26
13: StackMap locals:
StackMap stack:
aload 4
getfield org.h2.index.TreeNode.row:Lorg/h2/result/Row;
astore 7
start local 7 14: aload 0
aload 2
aload 7
invokevirtual org.h2.index.TreeIndex.compareRows:(Lorg/h2/result/SearchRow;Lorg/h2/result/SearchRow;)I
istore 8
start local 8 15: iload 8
ifne 20
16: aload 0
getfield org.h2.index.TreeIndex.indexType:Lorg/h2/index/IndexType;
invokevirtual org.h2.index.IndexType.isUnique:()Z
ifeq 19
17: aload 0
aload 2
invokevirtual org.h2.index.TreeIndex.mayHaveNullDuplicates:(Lorg/h2/result/SearchRow;)Z
ifne 19
18: aload 0
aload 2
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokevirtual org.h2.index.TreeIndex.getDuplicateKeyException:(Ljava/lang/String;)Lorg/h2/message/DbException;
athrow
19: StackMap locals: org.h2.result.Row int
StackMap stack:
aload 0
aload 2
aload 7
invokevirtual org.h2.index.TreeIndex.compareKeys:(Lorg/h2/result/SearchRow;Lorg/h2/result/SearchRow;)I
istore 8
20: StackMap locals:
StackMap stack:
iload 8
ifge 21
iconst_1
goto 22
StackMap locals:
StackMap stack:
21: iconst_0
StackMap locals:
StackMap stack: int
22: istore 6
23: aload 4
astore 5
24: aload 5
iload 6
invokestatic org.h2.index.TreeIndex.child:(Lorg/h2/index/TreeNode;Z)Lorg/h2/index/TreeNode;
astore 4
end local 8 end local 7 25: goto 6
26: StackMap locals:
StackMap stack:
aload 0
aload 5
iload 6
invokevirtual org.h2.index.TreeIndex.balance:(Lorg/h2/index/TreeNode;Z)V
27: aload 0
dup
getfield org.h2.index.TreeIndex.rowCount:J
lconst_1
ladd
putfield org.h2.index.TreeIndex.rowCount:J
28: return
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lorg/h2/index/TreeIndex;
0 29 1 session Lorg/h2/engine/Session;
0 29 2 row Lorg/h2/result/Row;
3 29 3 i Lorg/h2/index/TreeNode;
4 29 4 n Lorg/h2/index/TreeNode;
5 29 5 x Lorg/h2/index/TreeNode;
6 29 6 isLeft Z
14 25 7 r Lorg/h2/result/Row;
15 25 8 compare I
MethodParameters:
Name Flags
session
row
private void balance(org.h2.index.TreeNode, boolean);
descriptor: (Lorg/h2/index/TreeNode;Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: StackMap locals:
StackMap stack:
iload 2
ifeq 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_m1
StackMap locals:
StackMap stack: int
2: istore 3
start local 3 3: aload 1
getfield org.h2.index.TreeNode.balance:I
iload 3
imul
tableswitch { // -1 - 1
-1: 8
0: 6
1: 4
default: 43
}
4: StackMap locals: int
StackMap stack:
aload 1
iconst_0
putfield org.h2.index.TreeNode.balance:I
5: return
6: StackMap locals:
StackMap stack:
aload 1
iload 3
ineg
putfield org.h2.index.TreeNode.balance:I
7: goto 44
8: StackMap locals:
StackMap stack:
aload 1
iload 2
invokestatic org.h2.index.TreeIndex.child:(Lorg/h2/index/TreeNode;Z)Lorg/h2/index/TreeNode;
astore 4
start local 4 9: aload 4
getfield org.h2.index.TreeNode.balance:I
iload 3
ineg
if_icmpne 20
10: aload 0
aload 1
aload 4
invokevirtual org.h2.index.TreeIndex.replace:(Lorg/h2/index/TreeNode;Lorg/h2/index/TreeNode;)V
11: aload 1
iload 2
aload 4
iload 2
ifeq 12
iconst_0
goto 13
StackMap locals: org.h2.index.TreeIndex org.h2.index.TreeNode int int org.h2.index.TreeNode
StackMap stack: org.h2.index.TreeNode int org.h2.index.TreeNode
12: iconst_1
StackMap locals: org.h2.index.TreeIndex org.h2.index.TreeNode int int org.h2.index.TreeNode
StackMap stack: org.h2.index.TreeNode int org.h2.index.TreeNode int
13: invokestatic org.h2.index.TreeIndex.child:(Lorg/h2/index/TreeNode;Z)Lorg/h2/index/TreeNode;
invokestatic org.h2.index.TreeIndex.set:(Lorg/h2/index/TreeNode;ZLorg/h2/index/TreeNode;)V
14: aload 4
iload 2
ifeq 15
iconst_0
goto 16
StackMap locals:
StackMap stack: org.h2.index.TreeNode
15: iconst_1
StackMap locals: org.h2.index.TreeIndex org.h2.index.TreeNode int int org.h2.index.TreeNode
StackMap stack: org.h2.index.TreeNode int
16: aload 1
invokestatic org.h2.index.TreeIndex.set:(Lorg/h2/index/TreeNode;ZLorg/h2/index/TreeNode;)V
17: aload 1
iconst_0
putfield org.h2.index.TreeNode.balance:I
18: aload 4
iconst_0
putfield org.h2.index.TreeNode.balance:I
19: goto 42
20: StackMap locals:
StackMap stack:
aload 4
iload 2
ifeq 21
iconst_0
goto 22
StackMap locals:
StackMap stack: org.h2.index.TreeNode
21: iconst_1
StackMap locals: org.h2.index.TreeIndex org.h2.index.TreeNode int int org.h2.index.TreeNode
StackMap stack: org.h2.index.TreeNode int
22: invokestatic org.h2.index.TreeIndex.child:(Lorg/h2/index/TreeNode;Z)Lorg/h2/index/TreeNode;
astore 5
start local 5 23: aload 0
aload 1
aload 5
invokevirtual org.h2.index.TreeIndex.replace:(Lorg/h2/index/TreeNode;Lorg/h2/index/TreeNode;)V
24: aload 4
iload 2
ifeq 25
iconst_0
goto 26
StackMap locals: org.h2.index.TreeIndex org.h2.index.TreeNode int int org.h2.index.TreeNode org.h2.index.TreeNode
StackMap stack: org.h2.index.TreeNode
25: iconst_1
StackMap locals: org.h2.index.TreeIndex org.h2.index.TreeNode int int org.h2.index.TreeNode org.h2.index.TreeNode
StackMap stack: org.h2.index.TreeNode int
26: aload 5
iload 2
invokestatic org.h2.index.TreeIndex.child:(Lorg/h2/index/TreeNode;Z)Lorg/h2/index/TreeNode;
invokestatic org.h2.index.TreeIndex.set:(Lorg/h2/index/TreeNode;ZLorg/h2/index/TreeNode;)V
27: aload 5
iload 2
aload 4
invokestatic org.h2.index.TreeIndex.set:(Lorg/h2/index/TreeNode;ZLorg/h2/index/TreeNode;)V
28: aload 1
iload 2
aload 5
iload 2
ifeq 29
iconst_0
goto 30
StackMap locals: org.h2.index.TreeIndex org.h2.index.TreeNode int int org.h2.index.TreeNode org.h2.index.TreeNode
StackMap stack: org.h2.index.TreeNode int org.h2.index.TreeNode
29: iconst_1
StackMap locals: org.h2.index.TreeIndex org.h2.index.TreeNode int int org.h2.index.TreeNode org.h2.index.TreeNode
StackMap stack: org.h2.index.TreeNode int org.h2.index.TreeNode int
30: invokestatic org.h2.index.TreeIndex.child:(Lorg/h2/index/TreeNode;Z)Lorg/h2/index/TreeNode;
invokestatic org.h2.index.TreeIndex.set:(Lorg/h2/index/TreeNode;ZLorg/h2/index/TreeNode;)V
31: aload 5
iload 2
ifeq 32
iconst_0
goto 33
StackMap locals:
StackMap stack: org.h2.index.TreeNode
32: iconst_1
StackMap locals: org.h2.index.TreeIndex org.h2.index.TreeNode int int org.h2.index.TreeNode org.h2.index.TreeNode
StackMap stack: org.h2.index.TreeNode int
33: aload 1
invokestatic org.h2.index.TreeIndex.set:(Lorg/h2/index/TreeNode;ZLorg/h2/index/TreeNode;)V
34: aload 5
getfield org.h2.index.TreeNode.balance:I
istore 6
start local 6 35: aload 1
iload 6
iload 3
ineg
if_icmpne 36
iload 3
goto 37
StackMap locals: org.h2.index.TreeIndex org.h2.index.TreeNode int int org.h2.index.TreeNode org.h2.index.TreeNode int
StackMap stack: org.h2.index.TreeNode
36: iconst_0
StackMap locals: org.h2.index.TreeIndex org.h2.index.TreeNode int int org.h2.index.TreeNode org.h2.index.TreeNode int
StackMap stack: org.h2.index.TreeNode int
37: putfield org.h2.index.TreeNode.balance:I
38: aload 4
iload 6
iload 3
if_icmpne 39
iload 3
ineg
goto 40
StackMap locals:
StackMap stack: org.h2.index.TreeNode
39: iconst_0
StackMap locals: org.h2.index.TreeIndex org.h2.index.TreeNode int int org.h2.index.TreeNode org.h2.index.TreeNode int
StackMap stack: org.h2.index.TreeNode int
40: putfield org.h2.index.TreeNode.balance:I
41: aload 5
iconst_0
putfield org.h2.index.TreeNode.balance:I
end local 6 end local 5 42: StackMap locals:
StackMap stack:
return
end local 4 43: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc "b:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
getfield org.h2.index.TreeNode.balance:I
iload 3
imul
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.h2.message.DbException.throwInternalError:(Ljava/lang/String;)Ljava/lang/RuntimeException;
pop
44: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield org.h2.index.TreeIndex.root:Lorg/h2/index/TreeNode;
if_acmpne 46
45: return
46: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.h2.index.TreeNode.isFromLeft:()Z
istore 2
47: aload 1
getfield org.h2.index.TreeNode.parent:Lorg/h2/index/TreeNode;
astore 1
end local 3 48: goto 0
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 49 0 this Lorg/h2/index/TreeIndex;
0 49 1 x Lorg/h2/index/TreeNode;
0 49 2 isLeft Z
3 48 3 sign I
9 43 4 l Lorg/h2/index/TreeNode;
23 42 5 r Lorg/h2/index/TreeNode;
35 42 6 rb I
MethodParameters:
Name Flags
x
isLeft
private static org.h2.index.TreeNode child(org.h2.index.TreeNode, boolean);
descriptor: (Lorg/h2/index/TreeNode;Z)Lorg/h2/index/TreeNode;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifeq 1
aload 0
getfield org.h2.index.TreeNode.left:Lorg/h2/index/TreeNode;
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield org.h2.index.TreeNode.right:Lorg/h2/index/TreeNode;
StackMap locals:
StackMap stack: org.h2.index.TreeNode
2: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 x Lorg/h2/index/TreeNode;
0 3 1 isLeft Z
MethodParameters:
Name Flags
x
isLeft
private void replace(org.h2.index.TreeNode, org.h2.index.TreeNode);
descriptor: (Lorg/h2/index/TreeNode;Lorg/h2/index/TreeNode;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 0
getfield org.h2.index.TreeIndex.root:Lorg/h2/index/TreeNode;
if_acmpne 5
1: aload 0
aload 2
putfield org.h2.index.TreeIndex.root:Lorg/h2/index/TreeNode;
2: aload 2
ifnull 6
3: aload 2
aconst_null
putfield org.h2.index.TreeNode.parent:Lorg/h2/index/TreeNode;
4: goto 6
5: StackMap locals:
StackMap stack:
aload 1
getfield org.h2.index.TreeNode.parent:Lorg/h2/index/TreeNode;
aload 1
invokevirtual org.h2.index.TreeNode.isFromLeft:()Z
aload 2
invokestatic org.h2.index.TreeIndex.set:(Lorg/h2/index/TreeNode;ZLorg/h2/index/TreeNode;)V
6: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/h2/index/TreeIndex;
0 7 1 x Lorg/h2/index/TreeNode;
0 7 2 n Lorg/h2/index/TreeNode;
MethodParameters:
Name Flags
x
n
private static void set(org.h2.index.TreeNode, boolean, org.h2.index.TreeNode);
descriptor: (Lorg/h2/index/TreeNode;ZLorg/h2/index/TreeNode;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 1
ifeq 3
1: aload 0
aload 2
putfield org.h2.index.TreeNode.left:Lorg/h2/index/TreeNode;
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
aload 2
putfield org.h2.index.TreeNode.right:Lorg/h2/index/TreeNode;
4: StackMap locals:
StackMap stack:
aload 2
ifnull 6
5: aload 2
aload 0
putfield org.h2.index.TreeNode.parent:Lorg/h2/index/TreeNode;
6: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 parent Lorg/h2/index/TreeNode;
0 7 1 left Z
0 7 2 n Lorg/h2/index/TreeNode;
MethodParameters:
Name Flags
parent
left
n
public void remove(org.h2.engine.Session, org.h2.result.Row);
descriptor: (Lorg/h2/engine/Session;Lorg/h2/result/Row;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=10, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.h2.index.TreeIndex.closed:Z
ifeq 2
1: invokestatic org.h2.message.DbException.throwInternalError:()Ljava/lang/RuntimeException;
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 2
iconst_1
invokevirtual org.h2.index.TreeIndex.findFirstNode:(Lorg/h2/result/SearchRow;Z)Lorg/h2/index/TreeNode;
astore 3
start local 3 3: aload 3
ifnonnull 5
4: ldc "not found!"
invokestatic org.h2.message.DbException.throwInternalError:(Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
5: StackMap locals: org.h2.index.TreeNode
StackMap stack:
aload 3
getfield org.h2.index.TreeNode.left:Lorg/h2/index/TreeNode;
ifnonnull 8
6: aload 3
getfield org.h2.index.TreeNode.right:Lorg/h2/index/TreeNode;
astore 4
start local 4 7: goto 53
end local 4 StackMap locals:
StackMap stack:
8: aload 3
getfield org.h2.index.TreeNode.right:Lorg/h2/index/TreeNode;
ifnonnull 11
9: aload 3
getfield org.h2.index.TreeNode.left:Lorg/h2/index/TreeNode;
astore 4
start local 4 10: goto 53
end local 4 11: StackMap locals:
StackMap stack:
aload 3
astore 5
start local 5 12: aload 3
getfield org.h2.index.TreeNode.left:Lorg/h2/index/TreeNode;
astore 3
13: aload 3
astore 6
start local 6 14: goto 16
15: StackMap locals: org.h2.index.TreeIndex org.h2.engine.Session org.h2.result.Row org.h2.index.TreeNode top org.h2.index.TreeNode org.h2.index.TreeNode
StackMap stack:
aload 6
astore 3
16: StackMap locals:
StackMap stack:
aload 6
getfield org.h2.index.TreeNode.right:Lorg/h2/index/TreeNode;
dup
astore 6
ifnonnull 15
end local 6 17: aload 3
getfield org.h2.index.TreeNode.left:Lorg/h2/index/TreeNode;
astore 4
start local 4 18: aload 3
getfield org.h2.index.TreeNode.balance:I
istore 6
start local 6 19: aload 3
aload 5
getfield org.h2.index.TreeNode.balance:I
putfield org.h2.index.TreeNode.balance:I
20: aload 5
iload 6
putfield org.h2.index.TreeNode.balance:I
21: aload 3
getfield org.h2.index.TreeNode.parent:Lorg/h2/index/TreeNode;
astore 7
start local 7 22: aload 5
getfield org.h2.index.TreeNode.parent:Lorg/h2/index/TreeNode;
astore 8
start local 8 23: aload 5
aload 0
getfield org.h2.index.TreeIndex.root:Lorg/h2/index/TreeNode;
if_acmpne 25
24: aload 0
aload 3
putfield org.h2.index.TreeIndex.root:Lorg/h2/index/TreeNode;
25: StackMap locals: org.h2.index.TreeIndex org.h2.engine.Session org.h2.result.Row org.h2.index.TreeNode org.h2.index.TreeNode org.h2.index.TreeNode int org.h2.index.TreeNode org.h2.index.TreeNode
StackMap stack:
aload 3
aload 8
putfield org.h2.index.TreeNode.parent:Lorg/h2/index/TreeNode;
26: aload 8
ifnull 31
27: aload 8
getfield org.h2.index.TreeNode.right:Lorg/h2/index/TreeNode;
aload 5
if_acmpne 30
28: aload 8
aload 3
putfield org.h2.index.TreeNode.right:Lorg/h2/index/TreeNode;
29: goto 31
30: StackMap locals:
StackMap stack:
aload 8
aload 3
putfield org.h2.index.TreeNode.left:Lorg/h2/index/TreeNode;
31: StackMap locals:
StackMap stack:
aload 7
aload 5
if_acmpne 40
32: aload 5
aload 3
putfield org.h2.index.TreeNode.parent:Lorg/h2/index/TreeNode;
33: aload 5
getfield org.h2.index.TreeNode.left:Lorg/h2/index/TreeNode;
aload 3
if_acmpne 37
34: aload 3
aload 5
putfield org.h2.index.TreeNode.left:Lorg/h2/index/TreeNode;
35: aload 3
aload 5
getfield org.h2.index.TreeNode.right:Lorg/h2/index/TreeNode;
putfield org.h2.index.TreeNode.right:Lorg/h2/index/TreeNode;
36: goto 44
37: StackMap locals:
StackMap stack:
aload 3
aload 5
putfield org.h2.index.TreeNode.right:Lorg/h2/index/TreeNode;
38: aload 3
aload 5
getfield org.h2.index.TreeNode.left:Lorg/h2/index/TreeNode;
putfield org.h2.index.TreeNode.left:Lorg/h2/index/TreeNode;
39: goto 44
40: StackMap locals:
StackMap stack:
aload 5
aload 7
putfield org.h2.index.TreeNode.parent:Lorg/h2/index/TreeNode;
41: aload 7
aload 5
putfield org.h2.index.TreeNode.right:Lorg/h2/index/TreeNode;
42: aload 3
aload 5
getfield org.h2.index.TreeNode.right:Lorg/h2/index/TreeNode;
putfield org.h2.index.TreeNode.right:Lorg/h2/index/TreeNode;
43: aload 3
aload 5
getfield org.h2.index.TreeNode.left:Lorg/h2/index/TreeNode;
putfield org.h2.index.TreeNode.left:Lorg/h2/index/TreeNode;
44: StackMap locals:
StackMap stack:
aload 3
getfield org.h2.index.TreeNode.right:Lorg/h2/index/TreeNode;
ifnonnull 46
45: ldc "tree corrupted"
invokestatic org.h2.message.DbException.throwInternalError:(Ljava/lang/String;)Ljava/lang/RuntimeException;
pop
46: StackMap locals:
StackMap stack:
aload 3
getfield org.h2.index.TreeNode.right:Lorg/h2/index/TreeNode;
aload 3
putfield org.h2.index.TreeNode.parent:Lorg/h2/index/TreeNode;
47: aload 3
getfield org.h2.index.TreeNode.left:Lorg/h2/index/TreeNode;
aload 3
putfield org.h2.index.TreeNode.parent:Lorg/h2/index/TreeNode;
48: aload 5
aload 4
putfield org.h2.index.TreeNode.left:Lorg/h2/index/TreeNode;
49: aload 4
ifnull 51
50: aload 4
aload 5
putfield org.h2.index.TreeNode.parent:Lorg/h2/index/TreeNode;
51: StackMap locals:
StackMap stack:
aload 5
aconst_null
putfield org.h2.index.TreeNode.right:Lorg/h2/index/TreeNode;
52: aload 5
astore 3
end local 8 end local 7 end local 6 end local 5 53: StackMap locals: org.h2.index.TreeIndex org.h2.engine.Session org.h2.result.Row org.h2.index.TreeNode org.h2.index.TreeNode
StackMap stack:
aload 0
dup
getfield org.h2.index.TreeIndex.rowCount:J
lconst_1
lsub
putfield org.h2.index.TreeIndex.rowCount:J
54: aload 3
invokevirtual org.h2.index.TreeNode.isFromLeft:()Z
istore 5
start local 5 55: aload 0
aload 3
aload 4
invokevirtual org.h2.index.TreeIndex.replace:(Lorg/h2/index/TreeNode;Lorg/h2/index/TreeNode;)V
56: aload 3
getfield org.h2.index.TreeNode.parent:Lorg/h2/index/TreeNode;
astore 4
57: goto 110
58: StackMap locals: int
StackMap stack:
aload 4
astore 3
59: iload 5
ifeq 60
iconst_1
goto 61
StackMap locals:
StackMap stack:
60: iconst_m1
StackMap locals:
StackMap stack: int
61: istore 6
start local 6 62: aload 3
getfield org.h2.index.TreeNode.balance:I
iload 6
imul
tableswitch { // -1 - 1
-1: 63
0: 65
1: 67
default: 107
}
63: StackMap locals: int
StackMap stack:
aload 3
iconst_0
putfield org.h2.index.TreeNode.balance:I
64: goto 108
65: StackMap locals:
StackMap stack:
aload 3
iload 6
putfield org.h2.index.TreeNode.balance:I
66: return
67: StackMap locals:
StackMap stack:
aload 3
iload 5
ifeq 68
iconst_0
goto 69
StackMap locals:
StackMap stack: org.h2.index.TreeNode
68: iconst_1
StackMap locals: org.h2.index.TreeIndex org.h2.engine.Session org.h2.result.Row org.h2.index.TreeNode org.h2.index.TreeNode int int
StackMap stack: org.h2.index.TreeNode int
69: invokestatic org.h2.index.TreeIndex.child:(Lorg/h2/index/TreeNode;Z)Lorg/h2/index/TreeNode;
astore 7
start local 7 70: aload 7
getfield org.h2.index.TreeNode.balance:I
istore 8
start local 8 71: iload 8
iload 6
imul
iflt 85
72: aload 0
aload 3
aload 7
invokevirtual org.h2.index.TreeIndex.replace:(Lorg/h2/index/TreeNode;Lorg/h2/index/TreeNode;)V
73: aload 3
iload 5
ifeq 74
iconst_0
goto 75
StackMap locals: org.h2.index.TreeIndex org.h2.engine.Session org.h2.result.Row org.h2.index.TreeNode org.h2.index.TreeNode int int org.h2.index.TreeNode int
StackMap stack: org.h2.index.TreeNode
74: iconst_1
StackMap locals: org.h2.index.TreeIndex org.h2.engine.Session org.h2.result.Row org.h2.index.TreeNode org.h2.index.TreeNode int int org.h2.index.TreeNode int
StackMap stack: org.h2.index.TreeNode int
75: aload 7
iload 5
invokestatic org.h2.index.TreeIndex.child:(Lorg/h2/index/TreeNode;Z)Lorg/h2/index/TreeNode;
invokestatic org.h2.index.TreeIndex.set:(Lorg/h2/index/TreeNode;ZLorg/h2/index/TreeNode;)V
76: aload 7
iload 5
aload 3
invokestatic org.h2.index.TreeIndex.set:(Lorg/h2/index/TreeNode;ZLorg/h2/index/TreeNode;)V
77: iload 8
ifne 81
78: aload 3
iload 6
putfield org.h2.index.TreeNode.balance:I
79: aload 7
iload 6
ineg
putfield org.h2.index.TreeNode.balance:I
80: return
81: StackMap locals:
StackMap stack:
aload 3
iconst_0
putfield org.h2.index.TreeNode.balance:I
82: aload 7
iconst_0
putfield org.h2.index.TreeNode.balance:I
83: aload 7
astore 3
84: goto 108
85: StackMap locals:
StackMap stack:
aload 7
iload 5
invokestatic org.h2.index.TreeIndex.child:(Lorg/h2/index/TreeNode;Z)Lorg/h2/index/TreeNode;
astore 9
start local 9 86: aload 0
aload 3
aload 9
invokevirtual org.h2.index.TreeIndex.replace:(Lorg/h2/index/TreeNode;Lorg/h2/index/TreeNode;)V
87: aload 9
getfield org.h2.index.TreeNode.balance:I
istore 8
88: aload 7
iload 5
aload 9
iload 5
ifeq 89
iconst_0
goto 90
StackMap locals: org.h2.index.TreeIndex org.h2.engine.Session org.h2.result.Row org.h2.index.TreeNode org.h2.index.TreeNode int int org.h2.index.TreeNode int org.h2.index.TreeNode
StackMap stack: org.h2.index.TreeNode int org.h2.index.TreeNode
89: iconst_1
StackMap locals: org.h2.index.TreeIndex org.h2.engine.Session org.h2.result.Row org.h2.index.TreeNode org.h2.index.TreeNode int int org.h2.index.TreeNode int org.h2.index.TreeNode
StackMap stack: org.h2.index.TreeNode int org.h2.index.TreeNode int
90: invokestatic org.h2.index.TreeIndex.child:(Lorg/h2/index/TreeNode;Z)Lorg/h2/index/TreeNode;
invokestatic org.h2.index.TreeIndex.set:(Lorg/h2/index/TreeNode;ZLorg/h2/index/TreeNode;)V
91: aload 9
iload 5
ifeq 92
iconst_0
goto 93
StackMap locals:
StackMap stack: org.h2.index.TreeNode
92: iconst_1
StackMap locals: org.h2.index.TreeIndex org.h2.engine.Session org.h2.result.Row org.h2.index.TreeNode org.h2.index.TreeNode int int org.h2.index.TreeNode int org.h2.index.TreeNode
StackMap stack: org.h2.index.TreeNode int
93: aload 7
invokestatic org.h2.index.TreeIndex.set:(Lorg/h2/index/TreeNode;ZLorg/h2/index/TreeNode;)V
94: aload 3
iload 5
ifeq 95
iconst_0
goto 96
StackMap locals:
StackMap stack: org.h2.index.TreeNode
95: iconst_1
StackMap locals: org.h2.index.TreeIndex org.h2.engine.Session org.h2.result.Row org.h2.index.TreeNode org.h2.index.TreeNode int int org.h2.index.TreeNode int org.h2.index.TreeNode
StackMap stack: org.h2.index.TreeNode int
96: aload 9
iload 5
invokestatic org.h2.index.TreeIndex.child:(Lorg/h2/index/TreeNode;Z)Lorg/h2/index/TreeNode;
invokestatic org.h2.index.TreeIndex.set:(Lorg/h2/index/TreeNode;ZLorg/h2/index/TreeNode;)V
97: aload 9
iload 5
aload 3
invokestatic org.h2.index.TreeIndex.set:(Lorg/h2/index/TreeNode;ZLorg/h2/index/TreeNode;)V
98: aload 3
iload 8
iload 6
if_icmpne 99
iload 6
ineg
goto 100
StackMap locals:
StackMap stack: org.h2.index.TreeNode
99: iconst_0
StackMap locals: org.h2.index.TreeIndex org.h2.engine.Session org.h2.result.Row org.h2.index.TreeNode org.h2.index.TreeNode int int org.h2.index.TreeNode int org.h2.index.TreeNode
StackMap stack: org.h2.index.TreeNode int
100: putfield org.h2.index.TreeNode.balance:I
101: aload 7
iload 8
iload 6
ineg
if_icmpne 102
iload 6
goto 103
StackMap locals:
StackMap stack: org.h2.index.TreeNode
102: iconst_0
StackMap locals: org.h2.index.TreeIndex org.h2.engine.Session org.h2.result.Row org.h2.index.TreeNode org.h2.index.TreeNode int int org.h2.index.TreeNode int org.h2.index.TreeNode
StackMap stack: org.h2.index.TreeNode int
103: putfield org.h2.index.TreeNode.balance:I
104: aload 9
iconst_0
putfield org.h2.index.TreeNode.balance:I
105: aload 9
astore 3
end local 9 106: goto 108
end local 8 end local 7 107: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc "b: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
getfield org.h2.index.TreeNode.balance:I
iload 6
imul
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.h2.message.DbException.throwInternalError:(Ljava/lang/String;)Ljava/lang/RuntimeException;
pop
108: StackMap locals:
StackMap stack:
aload 3
invokevirtual org.h2.index.TreeNode.isFromLeft:()Z
istore 5
109: aload 3
getfield org.h2.index.TreeNode.parent:Lorg/h2/index/TreeNode;
astore 4
end local 6 110: StackMap locals:
StackMap stack:
aload 4
ifnonnull 58
111: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 112 0 this Lorg/h2/index/TreeIndex;
0 112 1 session Lorg/h2/engine/Session;
0 112 2 row Lorg/h2/result/Row;
3 112 3 x Lorg/h2/index/TreeNode;
7 8 4 n Lorg/h2/index/TreeNode;
10 11 4 n Lorg/h2/index/TreeNode;
18 112 4 n Lorg/h2/index/TreeNode;
12 53 5 d Lorg/h2/index/TreeNode;
14 17 6 temp Lorg/h2/index/TreeNode;
19 53 6 b I
22 53 7 xp Lorg/h2/index/TreeNode;
23 53 8 dp Lorg/h2/index/TreeNode;
55 112 5 isLeft Z
62 110 6 sign I
70 107 7 r Lorg/h2/index/TreeNode;
71 107 8 b I
86 106 9 l Lorg/h2/index/TreeNode;
MethodParameters:
Name Flags
session
row
private org.h2.index.TreeNode findFirstNode(org.h2.result.SearchRow, boolean);
descriptor: (Lorg/h2/result/SearchRow;Z)Lorg/h2/index/TreeNode;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.h2.index.TreeIndex.root:Lorg/h2/index/TreeNode;
astore 3
start local 3 1: aload 3
astore 4
start local 4 2: goto 16
3: StackMap locals: org.h2.index.TreeNode org.h2.index.TreeNode
StackMap stack:
aload 3
astore 4
4: aload 0
aload 3
getfield org.h2.index.TreeNode.row:Lorg/h2/result/Row;
aload 1
invokevirtual org.h2.index.TreeIndex.compareRows:(Lorg/h2/result/SearchRow;Lorg/h2/result/SearchRow;)I
istore 5
start local 5 5: iload 5
ifne 7
iload 2
ifeq 7
6: aload 0
aload 3
getfield org.h2.index.TreeNode.row:Lorg/h2/result/Row;
aload 1
invokevirtual org.h2.index.TreeIndex.compareKeys:(Lorg/h2/result/SearchRow;Lorg/h2/result/SearchRow;)I
istore 5
7: StackMap locals: int
StackMap stack:
iload 5
ifne 12
8: iload 2
ifeq 10
9: aload 3
areturn
10: StackMap locals:
StackMap stack:
aload 3
getfield org.h2.index.TreeNode.left:Lorg/h2/index/TreeNode;
astore 3
11: goto 16
StackMap locals:
StackMap stack:
12: iload 5
ifle 15
13: aload 3
getfield org.h2.index.TreeNode.left:Lorg/h2/index/TreeNode;
astore 3
14: goto 16
15: StackMap locals:
StackMap stack:
aload 3
getfield org.h2.index.TreeNode.right:Lorg/h2/index/TreeNode;
astore 3
end local 5 16: StackMap locals:
StackMap stack:
aload 3
ifnonnull 3
17: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/h2/index/TreeIndex;
0 18 1 row Lorg/h2/result/SearchRow;
0 18 2 withKey Z
1 18 3 x Lorg/h2/index/TreeNode;
2 18 4 result Lorg/h2/index/TreeNode;
5 16 5 compare I
MethodParameters:
Name Flags
row
withKey
public org.h2.index.Cursor find(org.h2.table.TableFilter, org.h2.result.SearchRow, org.h2.result.SearchRow);
descriptor: (Lorg/h2/table/TableFilter;Lorg/h2/result/SearchRow;Lorg/h2/result/SearchRow;)Lorg/h2/index/Cursor;
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
aload 2
aload 3
invokevirtual org.h2.index.TreeIndex.find:(Lorg/h2/result/SearchRow;Lorg/h2/result/SearchRow;)Lorg/h2/index/Cursor;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/h2/index/TreeIndex;
0 1 1 filter Lorg/h2/table/TableFilter;
0 1 2 first Lorg/h2/result/SearchRow;
0 1 3 last Lorg/h2/result/SearchRow;
MethodParameters:
Name Flags
filter
first
last
public org.h2.index.Cursor find(org.h2.engine.Session, org.h2.result.SearchRow, org.h2.result.SearchRow);
descriptor: (Lorg/h2/engine/Session;Lorg/h2/result/SearchRow;Lorg/h2/result/SearchRow;)Lorg/h2/index/Cursor;
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
aload 2
aload 3
invokevirtual org.h2.index.TreeIndex.find:(Lorg/h2/result/SearchRow;Lorg/h2/result/SearchRow;)Lorg/h2/index/Cursor;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/h2/index/TreeIndex;
0 1 1 session Lorg/h2/engine/Session;
0 1 2 first Lorg/h2/result/SearchRow;
0 1 3 last Lorg/h2/result/SearchRow;
MethodParameters:
Name Flags
session
first
last
private org.h2.index.Cursor find(org.h2.result.SearchRow, org.h2.result.SearchRow);
descriptor: (Lorg/h2/result/SearchRow;Lorg/h2/result/SearchRow;)Lorg/h2/index/Cursor;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 9
1: aload 0
getfield org.h2.index.TreeIndex.root:Lorg/h2/index/TreeNode;
astore 3
start local 3 2: goto 7
3: StackMap locals: org.h2.index.TreeNode
StackMap stack:
aload 3
getfield org.h2.index.TreeNode.left:Lorg/h2/index/TreeNode;
astore 4
start local 4 4: aload 4
ifnonnull 6
5: goto 8
6: StackMap locals: org.h2.index.TreeNode
StackMap stack:
aload 4
astore 3
end local 4 7: StackMap locals:
StackMap stack:
aload 3
ifnonnull 3
8: StackMap locals:
StackMap stack:
new org.h2.index.TreeCursor
dup
aload 0
aload 3
aconst_null
aload 2
invokespecial org.h2.index.TreeCursor.<init>:(Lorg/h2/index/TreeIndex;Lorg/h2/index/TreeNode;Lorg/h2/result/SearchRow;Lorg/h2/result/SearchRow;)V
areturn
end local 3 9: StackMap locals:
StackMap stack:
aload 0
aload 1
iconst_0
invokevirtual org.h2.index.TreeIndex.findFirstNode:(Lorg/h2/result/SearchRow;Z)Lorg/h2/index/TreeNode;
astore 3
start local 3 10: new org.h2.index.TreeCursor
dup
aload 0
aload 3
aload 1
aload 2
invokespecial org.h2.index.TreeCursor.<init>:(Lorg/h2/index/TreeIndex;Lorg/h2/index/TreeNode;Lorg/h2/result/SearchRow;Lorg/h2/result/SearchRow;)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/h2/index/TreeIndex;
0 11 1 first Lorg/h2/result/SearchRow;
0 11 2 last Lorg/h2/result/SearchRow;
2 9 3 x Lorg/h2/index/TreeNode;
4 7 4 n Lorg/h2/index/TreeNode;
10 11 3 x Lorg/h2/index/TreeNode;
MethodParameters:
Name Flags
first
last
public double getCost(org.h2.engine.Session, int[], org.h2.table.TableFilter[], int, org.h2.result.SortOrder, org.h2.command.dml.AllColumnsForPlan);
descriptor: (Lorg/h2/engine/Session;[I[Lorg/h2/table/TableFilter;ILorg/h2/result/SortOrder;Lorg/h2/command/dml/AllColumnsForPlan;)D
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=7, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
aload 2
aload 0
getfield org.h2.index.TreeIndex.tableData:Lorg/h2/table/PageStoreTable;
invokevirtual org.h2.table.PageStoreTable.getRowCountApproximation:()J
1: aload 3
iload 4
aload 5
iconst_0
aload 6
2: invokevirtual org.h2.index.TreeIndex.getCostRangeIndex:([IJ[Lorg/h2/table/TableFilter;ILorg/h2/result/SortOrder;ZLorg/h2/command/dml/AllColumnsForPlan;)J
l2d
dreturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/h2/index/TreeIndex;
0 3 1 session Lorg/h2/engine/Session;
0 3 2 masks [I
0 3 3 filters [Lorg/h2/table/TableFilter;
0 3 4 filter I
0 3 5 sortOrder Lorg/h2/result/SortOrder;
0 3 6 allColumnsSet Lorg/h2/command/dml/AllColumnsForPlan;
MethodParameters:
Name Flags
session
masks
filters
filter
sortOrder
allColumnsSet
public void remove(org.h2.engine.Session);
descriptor: (Lorg/h2/engine/Session;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.h2.index.TreeIndex.truncate:(Lorg/h2/engine/Session;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/h2/index/TreeIndex;
0 2 1 session Lorg/h2/engine/Session;
MethodParameters:
Name Flags
session
public void truncate(org.h2.engine.Session);
descriptor: (Lorg/h2/engine/Session;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aconst_null
putfield org.h2.index.TreeIndex.root:Lorg/h2/index/TreeNode;
1: aload 0
lconst_0
putfield org.h2.index.TreeIndex.rowCount:J
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/h2/index/TreeIndex;
0 3 1 session Lorg/h2/engine/Session;
MethodParameters:
Name Flags
session
public void checkRename();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/h2/index/TreeIndex;
public boolean needRebuild();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/h2/index/TreeIndex;
public boolean canGetFirstOrLast();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/h2/index/TreeIndex;
public org.h2.index.Cursor findFirstOrLast(org.h2.engine.Session, boolean);
descriptor: (Lorg/h2/engine/Session;Z)Lorg/h2/index/Cursor;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.h2.index.TreeIndex.closed:Z
ifeq 2
1: aload 0
invokevirtual org.h2.index.TreeIndex.toString:()Ljava/lang/String;
invokestatic org.h2.message.DbException.throwInternalError:(Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
2: StackMap locals:
StackMap stack:
iload 2
ifeq 11
3: aload 0
aload 1
aconst_null
aconst_null
invokevirtual org.h2.index.TreeIndex.find:(Lorg/h2/engine/Session;Lorg/h2/result/SearchRow;Lorg/h2/result/SearchRow;)Lorg/h2/index/Cursor;
astore 3
start local 3 4: goto 9
5: StackMap locals: org.h2.index.Cursor
StackMap stack:
aload 3
invokeinterface org.h2.index.Cursor.getSearchRow:()Lorg/h2/result/SearchRow;
astore 4
start local 4 6: aload 4
aload 0
getfield org.h2.index.TreeIndex.columnIds:[I
iconst_0
iaload
invokeinterface org.h2.result.SearchRow.getValue:(I)Lorg/h2/value/Value;
astore 5
start local 5 7: aload 5
getstatic org.h2.value.ValueNull.INSTANCE:Lorg/h2/value/ValueNull;
if_acmpeq 9
8: aload 3
areturn
end local 5 end local 4 9: StackMap locals:
StackMap stack:
aload 3
invokeinterface org.h2.index.Cursor.next:()Z
ifne 5
10: aload 3
areturn
end local 3 11: StackMap locals:
StackMap stack:
aload 0
getfield org.h2.index.TreeIndex.root:Lorg/h2/index/TreeNode;
astore 3
start local 3 12: goto 17
13: StackMap locals: org.h2.index.TreeNode
StackMap stack:
aload 3
getfield org.h2.index.TreeNode.right:Lorg/h2/index/TreeNode;
astore 4
start local 4 14: aload 4
ifnonnull 16
15: goto 18
16: StackMap locals: org.h2.index.TreeNode
StackMap stack:
aload 4
astore 3
end local 4 17: StackMap locals:
StackMap stack:
aload 3
ifnonnull 13
18: StackMap locals:
StackMap stack:
new org.h2.index.TreeCursor
dup
aload 0
aload 3
aconst_null
aconst_null
invokespecial org.h2.index.TreeCursor.<init>:(Lorg/h2/index/TreeIndex;Lorg/h2/index/TreeNode;Lorg/h2/result/SearchRow;Lorg/h2/result/SearchRow;)V
astore 5
start local 5 19: aload 3
ifnonnull 21
20: aload 5
areturn
21: StackMap locals: org.h2.index.TreeIndex org.h2.engine.Session int org.h2.index.TreeNode top org.h2.index.TreeCursor
StackMap stack:
aload 5
invokevirtual org.h2.index.TreeCursor.getSearchRow:()Lorg/h2/result/SearchRow;
astore 6
start local 6 22: aload 6
ifnonnull 24
23: goto 28
24: StackMap locals: org.h2.result.SearchRow
StackMap stack:
aload 6
aload 0
getfield org.h2.index.TreeIndex.columnIds:[I
iconst_0
iaload
invokeinterface org.h2.result.SearchRow.getValue:(I)Lorg/h2/value/Value;
astore 7
start local 7 25: aload 7
getstatic org.h2.value.ValueNull.INSTANCE:Lorg/h2/value/ValueNull;
if_acmpeq 27
26: aload 5
areturn
end local 7 end local 6 27: StackMap locals:
StackMap stack:
aload 5
invokevirtual org.h2.index.TreeCursor.previous:()Z
ifne 21
28: StackMap locals:
StackMap stack:
aload 5
areturn
end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lorg/h2/index/TreeIndex;
0 29 1 session Lorg/h2/engine/Session;
0 29 2 first Z
4 11 3 cursor Lorg/h2/index/Cursor;
6 9 4 row Lorg/h2/result/SearchRow;
7 9 5 v Lorg/h2/value/Value;
12 29 3 x Lorg/h2/index/TreeNode;
14 17 4 n Lorg/h2/index/TreeNode;
19 29 5 cursor Lorg/h2/index/TreeCursor;
22 27 6 row Lorg/h2/result/SearchRow;
25 27 7 v Lorg/h2/value/Value;
MethodParameters:
Name Flags
session
first
public long getRowCount(org.h2.engine.Session);
descriptor: (Lorg/h2/engine/Session;)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.h2.index.TreeIndex.rowCount:J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/h2/index/TreeIndex;
0 1 1 session Lorg/h2/engine/Session;
MethodParameters:
Name Flags
session
public long getRowCountApproximation();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.h2.index.TreeIndex.rowCount:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/h2/index/TreeIndex;
public long getDiskSpaceUsed();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: lconst_0
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/h2/index/TreeIndex;
}
SourceFile: "TreeIndex.java"