public class org.h2.index.PageBtreeLeaf extends org.h2.index.PageBtree
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.h2.index.PageBtreeLeaf
super_class: org.h2.index.PageBtree
{
private static final int OFFSET_LENGTH;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private final boolean optimizeUpdate;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private boolean writtenData;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private void <init>(org.h2.index.PageBtreeIndex, int, org.h2.store.Data);
descriptor: (Lorg/h2/index/PageBtreeIndex;ILorg/h2/store/Data;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
iload 2
aload 3
invokespecial org.h2.index.PageBtree.<init>:(Lorg/h2/index/PageBtreeIndex;ILorg/h2/store/Data;)V
1: aload 0
aload 1
invokevirtual org.h2.index.PageBtreeIndex.getDatabase:()Lorg/h2/engine/Database;
invokevirtual org.h2.engine.Database.getSettings:()Lorg/h2/engine/DbSettings;
getfield org.h2.engine.DbSettings.optimizeUpdate:Z
putfield org.h2.index.PageBtreeLeaf.optimizeUpdate:Z
2: return
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/PageBtreeLeaf;
0 3 1 index Lorg/h2/index/PageBtreeIndex;
0 3 2 pageId I
0 3 3 data Lorg/h2/store/Data;
MethodParameters:
Name Flags
index
pageId
data
public static org.h2.store.Page read(org.h2.index.PageBtreeIndex, org.h2.store.Data, int);
descriptor: (Lorg/h2/index/PageBtreeIndex;Lorg/h2/store/Data;I)Lorg/h2/store/Page;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new org.h2.index.PageBtreeLeaf
dup
aload 0
iload 2
aload 1
invokespecial org.h2.index.PageBtreeLeaf.<init>:(Lorg/h2/index/PageBtreeIndex;ILorg/h2/store/Data;)V
astore 3
start local 3 1: aload 3
invokevirtual org.h2.index.PageBtreeLeaf.read:()V
2: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 index Lorg/h2/index/PageBtreeIndex;
0 3 1 data Lorg/h2/store/Data;
0 3 2 pageId I
1 3 3 p Lorg/h2/index/PageBtreeLeaf;
MethodParameters:
Name Flags
index
data
pageId
static org.h2.index.PageBtreeLeaf create(org.h2.index.PageBtreeIndex, int, int);
descriptor: (Lorg/h2/index/PageBtreeIndex;II)Lorg/h2/index/PageBtreeLeaf;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new org.h2.index.PageBtreeLeaf
dup
aload 0
iload 1
aload 0
invokevirtual org.h2.index.PageBtreeIndex.getPageStore:()Lorg/h2/store/PageStore;
1: invokevirtual org.h2.store.PageStore.createData:()Lorg/h2/store/Data;
2: invokespecial org.h2.index.PageBtreeLeaf.<init>:(Lorg/h2/index/PageBtreeIndex;ILorg/h2/store/Data;)V
astore 3
start local 3 3: aload 0
invokevirtual org.h2.index.PageBtreeIndex.getPageStore:()Lorg/h2/store/PageStore;
aload 3
aconst_null
invokevirtual org.h2.store.PageStore.logUndo:(Lorg/h2/store/Page;Lorg/h2/store/Data;)V
4: aload 3
getstatic org.h2.result.SearchRow.EMPTY_ARRAY:[Lorg/h2/result/SearchRow;
putfield org.h2.index.PageBtreeLeaf.rows:[Lorg/h2/result/SearchRow;
5: aload 3
iload 2
putfield org.h2.index.PageBtreeLeaf.parentPageId:I
6: aload 3
invokevirtual org.h2.index.PageBtreeLeaf.writeHead:()V
7: aload 3
aload 3
getfield org.h2.index.PageBtreeLeaf.data:Lorg/h2/store/Data;
invokevirtual org.h2.store.Data.length:()I
putfield org.h2.index.PageBtreeLeaf.start:I
8: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 index Lorg/h2/index/PageBtreeIndex;
0 9 1 pageId I
0 9 2 parentPageId I
3 9 3 p Lorg/h2/index/PageBtreeLeaf;
MethodParameters:
Name Flags
index
pageId
parentPageId
private void read();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
getfield org.h2.index.PageBtreeLeaf.data:Lorg/h2/store/Data;
invokevirtual org.h2.store.Data.reset:()V
1: aload 0
getfield org.h2.index.PageBtreeLeaf.data:Lorg/h2/store/Data;
invokevirtual org.h2.store.Data.readByte:()B
istore 1
start local 1 2: aload 0
getfield org.h2.index.PageBtreeLeaf.data:Lorg/h2/store/Data;
invokevirtual org.h2.store.Data.readShortInt:()S
pop
3: aload 0
aload 0
getfield org.h2.index.PageBtreeLeaf.data:Lorg/h2/store/Data;
invokevirtual org.h2.store.Data.readInt:()I
putfield org.h2.index.PageBtreeLeaf.parentPageId:I
4: aload 0
iload 1
bipush 16
iand
ifne 5
iconst_1
goto 6
StackMap locals: org.h2.index.PageBtreeLeaf int
StackMap stack: org.h2.index.PageBtreeLeaf
5: iconst_0
StackMap locals: org.h2.index.PageBtreeLeaf int
StackMap stack: org.h2.index.PageBtreeLeaf int
6: putfield org.h2.index.PageBtreeLeaf.onlyPosition:Z
7: aload 0
getfield org.h2.index.PageBtreeLeaf.data:Lorg/h2/store/Data;
invokevirtual org.h2.store.Data.readVarInt:()I
istore 2
start local 2 8: iload 2
aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
invokevirtual org.h2.index.PageBtreeIndex.getId:()I
if_icmpeq 14
9: ldc 90030
10: new java.lang.StringBuilder
dup
ldc "page:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual org.h2.index.PageBtreeLeaf.getPos:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " expected index:"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
invokevirtual org.h2.index.PageBtreeIndex.getId:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
11: ldc "got:"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
12: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
13: invokestatic org.h2.message.DbException.get:(ILjava/lang/String;)Lorg/h2/message/DbException;
athrow
14: StackMap locals: int
StackMap stack:
aload 0
aload 0
getfield org.h2.index.PageBtreeLeaf.data:Lorg/h2/store/Data;
invokevirtual org.h2.store.Data.readShortInt:()S
putfield org.h2.index.PageBtreeLeaf.entryCount:I
15: aload 0
aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
newarray 10
putfield org.h2.index.PageBtreeLeaf.offsets:[I
16: aload 0
aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
anewarray org.h2.result.SearchRow
putfield org.h2.index.PageBtreeLeaf.rows:[Lorg/h2/result/SearchRow;
17: iconst_0
istore 3
start local 3 18: goto 21
19: StackMap locals: int
StackMap stack:
aload 0
getfield org.h2.index.PageBtreeLeaf.offsets:[I
iload 3
aload 0
getfield org.h2.index.PageBtreeLeaf.data:Lorg/h2/store/Data;
invokevirtual org.h2.store.Data.readShortInt:()S
iastore
20: iinc 3 1
StackMap locals:
StackMap stack:
21: iload 3
aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
if_icmplt 19
end local 3 22: aload 0
aload 0
getfield org.h2.index.PageBtreeLeaf.data:Lorg/h2/store/Data;
invokevirtual org.h2.store.Data.length:()I
putfield org.h2.index.PageBtreeLeaf.start:I
23: aload 0
iconst_1
putfield org.h2.index.PageBtreeLeaf.written:Z
24: aload 0
iconst_1
putfield org.h2.index.PageBtreeLeaf.writtenData:Z
25: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lorg/h2/index/PageBtreeLeaf;
2 26 1 type I
8 26 2 indexId I
18 22 3 i I
int addRowTry(org.h2.result.SearchRow);
descriptor: (Lorg/h2/result/SearchRow;)I
flags: (0x0000)
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_1
invokevirtual org.h2.index.PageBtreeLeaf.addRow:(Lorg/h2/result/SearchRow;Z)I
istore 2
start local 2 1: aload 0
invokevirtual org.h2.index.PageBtreeLeaf.memoryChange:()V
2: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/h2/index/PageBtreeLeaf;
0 3 1 row Lorg/h2/result/SearchRow;
1 3 2 x I
MethodParameters:
Name Flags
row
private int addRow(org.h2.result.SearchRow, boolean);
descriptor: (Lorg/h2/result/SearchRow;Z)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=10, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
aload 0
getfield org.h2.index.PageBtreeLeaf.data:Lorg/h2/store/Data;
aload 1
aload 0
getfield org.h2.index.PageBtreeLeaf.onlyPosition:Z
invokevirtual org.h2.index.PageBtreeIndex.getRowSize:(Lorg/h2/store/Data;Lorg/h2/result/SearchRow;Z)I
istore 3
start local 3 1: aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
invokevirtual org.h2.index.PageBtreeIndex.getPageStore:()Lorg/h2/store/PageStore;
invokevirtual org.h2.store.PageStore.getPageSize:()I
istore 4
start local 4 2: aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
ifne 3
iload 4
goto 4
StackMap locals: int int
StackMap stack:
3: aload 0
getfield org.h2.index.PageBtreeLeaf.offsets:[I
aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
iconst_1
isub
iaload
StackMap locals:
StackMap stack: int
4: istore 5
start local 5 5: iload 5
iload 3
isub
aload 0
getfield org.h2.index.PageBtreeLeaf.start:I
iconst_2
iadd
if_icmpge 31
6: iload 2
ifeq 15
aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
iconst_1
if_icmple 15
7: aload 0
aload 1
iconst_0
iconst_1
iconst_1
invokevirtual org.h2.index.PageBtreeLeaf.find:(Lorg/h2/result/SearchRow;ZZZ)I
istore 6
start local 6 8: aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
iconst_5
if_icmpge 10
9: aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
iconst_2
idiv
ireturn
10: StackMap locals: int int
StackMap stack:
aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
iconst_3
idiv
istore 7
start local 7 11: iload 6
iload 7
if_icmpge 12
iload 7
goto 14
StackMap locals: int
StackMap stack:
12: iload 6
iconst_2
iload 7
imul
if_icmplt 13
iconst_2
iload 7
imul
goto 14
StackMap locals:
StackMap stack:
13: iload 6
StackMap locals:
StackMap stack: int
14: ireturn
end local 7 end local 6 15: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.h2.index.PageBtreeLeaf.readAllRows:()V
16: aload 0
iconst_0
putfield org.h2.index.PageBtreeLeaf.writtenData:Z
17: aload 0
iconst_1
putfield org.h2.index.PageBtreeLeaf.onlyPosition:Z
18: iload 4
istore 6
start local 6 19: iconst_0
istore 7
start local 7 20: goto 24
21: StackMap locals: int int
StackMap stack:
iload 6
aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
aload 0
getfield org.h2.index.PageBtreeLeaf.data:Lorg/h2/store/Data;
aload 0
iload 7
invokevirtual org.h2.index.PageBtreeLeaf.getRow:(I)Lorg/h2/result/SearchRow;
iconst_1
invokevirtual org.h2.index.PageBtreeIndex.getRowSize:(Lorg/h2/store/Data;Lorg/h2/result/SearchRow;Z)I
isub
istore 6
22: aload 0
getfield org.h2.index.PageBtreeLeaf.offsets:[I
iload 7
iload 6
iastore
23: iinc 7 1
StackMap locals:
StackMap stack:
24: iload 7
aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
if_icmplt 21
end local 7 25: aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
ifne 26
iload 4
goto 27
StackMap locals:
StackMap stack:
26: aload 0
getfield org.h2.index.PageBtreeLeaf.offsets:[I
aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
iconst_1
isub
iaload
StackMap locals:
StackMap stack: int
27: istore 5
28: aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
aload 0
getfield org.h2.index.PageBtreeLeaf.data:Lorg/h2/store/Data;
aload 1
iconst_1
invokevirtual org.h2.index.PageBtreeIndex.getRowSize:(Lorg/h2/store/Data;Lorg/h2/result/SearchRow;Z)I
istore 3
29: iload 5
iload 3
isub
aload 0
getfield org.h2.index.PageBtreeLeaf.start:I
iconst_2
iadd
if_icmpge 31
30: invokestatic org.h2.message.DbException.throwInternalError:()Ljava/lang/RuntimeException;
athrow
end local 6 31: StackMap locals:
StackMap stack:
aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
invokevirtual org.h2.index.PageBtreeIndex.getPageStore:()Lorg/h2/store/PageStore;
aload 0
aload 0
getfield org.h2.index.PageBtreeLeaf.data:Lorg/h2/store/Data;
invokevirtual org.h2.store.PageStore.logUndo:(Lorg/h2/store/Page;Lorg/h2/store/Data;)V
32: aload 0
getfield org.h2.index.PageBtreeLeaf.optimizeUpdate:Z
ifne 34
33: aload 0
invokevirtual org.h2.index.PageBtreeLeaf.readAllRows:()V
34: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
invokevirtual org.h2.index.PageBtreeIndex.getPageStore:()Lorg/h2/store/PageStore;
invokevirtual org.h2.store.PageStore.getChangeCount:()J
putfield org.h2.index.PageBtreeLeaf.changeCount:J
35: aload 0
iconst_0
putfield org.h2.index.PageBtreeLeaf.written:Z
36: aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
ifne 39
37: iconst_0
istore 6
start local 6 38: goto 40
end local 6 39: StackMap locals:
StackMap stack:
aload 0
aload 1
iconst_0
iconst_1
iconst_1
invokevirtual org.h2.index.PageBtreeLeaf.find:(Lorg/h2/result/SearchRow;ZZZ)I
istore 6
start local 6 40: StackMap locals: int
StackMap stack:
aload 0
dup
getfield org.h2.index.PageBtreeLeaf.start:I
iconst_2
iadd
putfield org.h2.index.PageBtreeLeaf.start:I
41: iload 6
ifne 42
iload 4
goto 43
StackMap locals:
StackMap stack:
42: aload 0
getfield org.h2.index.PageBtreeLeaf.offsets:[I
iload 6
iconst_1
isub
iaload
StackMap locals:
StackMap stack: int
43: iload 3
isub
istore 7
start local 7 44: aload 0
getfield org.h2.index.PageBtreeLeaf.optimizeUpdate:Z
ifeq 52
aload 0
getfield org.h2.index.PageBtreeLeaf.writtenData:Z
ifeq 52
45: aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
ifle 51
46: aload 0
getfield org.h2.index.PageBtreeLeaf.data:Lorg/h2/store/Data;
invokevirtual org.h2.store.Data.getBytes:()[B
astore 8
start local 8 47: aload 0
getfield org.h2.index.PageBtreeLeaf.offsets:[I
aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
iconst_1
isub
iaload
istore 9
start local 9 48: aload 8
iload 9
aload 8
iload 9
iload 3
isub
49: iload 7
iload 9
isub
iload 3
iadd
50: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
end local 9 end local 8 51: StackMap locals: int
StackMap stack:
aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
aload 0
getfield org.h2.index.PageBtreeLeaf.data:Lorg/h2/store/Data;
iload 7
aload 1
aload 0
getfield org.h2.index.PageBtreeLeaf.onlyPosition:Z
invokevirtual org.h2.index.PageBtreeIndex.writeRow:(Lorg/h2/store/Data;ILorg/h2/result/SearchRow;Z)V
52: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.h2.index.PageBtreeLeaf.offsets:[I
aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
iload 6
iload 7
invokestatic org.h2.index.PageBtreeLeaf.insert:([IIII)[I
putfield org.h2.index.PageBtreeLeaf.offsets:[I
53: aload 0
getfield org.h2.index.PageBtreeLeaf.offsets:[I
iload 6
iconst_1
iadd
aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
iconst_1
iadd
iload 3
ineg
invokestatic org.h2.index.PageBtreeLeaf.add:([IIII)V
54: aload 0
aload 0
getfield org.h2.index.PageBtreeLeaf.rows:[Lorg/h2/result/SearchRow;
aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
iload 6
aload 1
invokestatic org.h2.index.PageBtreeLeaf.insert:([Ljava/lang/Object;IILjava/lang/Object;)[Ljava/lang/Object;
checkcast org.h2.result.SearchRow[]
putfield org.h2.index.PageBtreeLeaf.rows:[Lorg/h2/result/SearchRow;
55: aload 0
dup
getfield org.h2.index.PageBtreeLeaf.entryCount:I
iconst_1
iadd
putfield org.h2.index.PageBtreeLeaf.entryCount:I
56: aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
invokevirtual org.h2.index.PageBtreeIndex.getPageStore:()Lorg/h2/store/PageStore;
aload 0
invokevirtual org.h2.store.PageStore.update:(Lorg/h2/store/Page;)V
57: iconst_m1
ireturn
end local 7 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 58 0 this Lorg/h2/index/PageBtreeLeaf;
0 58 1 row Lorg/h2/result/SearchRow;
0 58 2 tryOnly Z
1 58 3 rowLength I
2 58 4 pageSize I
5 58 5 last I
8 15 6 x I
11 15 7 third I
19 31 6 o I
20 25 7 i I
38 39 6 x I
40 58 6 x I
44 58 7 offset I
47 51 8 d [B
48 51 9 dataStart I
MethodParameters:
Name Flags
row
tryOnly
private void removeRow(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield org.h2.index.PageBtreeLeaf.optimizeUpdate:Z
ifne 2
1: aload 0
invokevirtual org.h2.index.PageBtreeLeaf.readAllRows:()V
2: StackMap locals:
StackMap stack:
aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
invokevirtual org.h2.index.PageBtreeIndex.getPageStore:()Lorg/h2/store/PageStore;
aload 0
aload 0
getfield org.h2.index.PageBtreeLeaf.data:Lorg/h2/store/Data;
invokevirtual org.h2.store.PageStore.logUndo:(Lorg/h2/store/Page;Lorg/h2/store/Data;)V
3: aload 0
dup
getfield org.h2.index.PageBtreeLeaf.entryCount:I
iconst_1
isub
putfield org.h2.index.PageBtreeLeaf.entryCount:I
4: aload 0
iconst_0
putfield org.h2.index.PageBtreeLeaf.written:Z
5: aload 0
aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
invokevirtual org.h2.index.PageBtreeIndex.getPageStore:()Lorg/h2/store/PageStore;
invokevirtual org.h2.store.PageStore.getChangeCount:()J
putfield org.h2.index.PageBtreeLeaf.changeCount:J
6: aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
ifgt 8
7: aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
invokestatic java.lang.Integer.toString:(I)Ljava/lang/String;
invokestatic org.h2.message.DbException.throwInternalError:(Ljava/lang/String;)Ljava/lang/RuntimeException;
pop
8: StackMap locals:
StackMap stack:
iload 1
ifle 9
aload 0
getfield org.h2.index.PageBtreeLeaf.offsets:[I
iload 1
iconst_1
isub
iaload
goto 10
StackMap locals:
StackMap stack:
9: aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
invokevirtual org.h2.index.PageBtreeIndex.getPageStore:()Lorg/h2/store/PageStore;
invokevirtual org.h2.store.PageStore.getPageSize:()I
StackMap locals:
StackMap stack: int
10: istore 2
start local 2 11: iload 2
aload 0
getfield org.h2.index.PageBtreeLeaf.offsets:[I
iload 1
iaload
isub
istore 3
start local 3 12: aload 0
dup
getfield org.h2.index.PageBtreeLeaf.start:I
iconst_2
isub
putfield org.h2.index.PageBtreeLeaf.start:I
13: aload 0
getfield org.h2.index.PageBtreeLeaf.optimizeUpdate:Z
ifeq 21
14: aload 0
getfield org.h2.index.PageBtreeLeaf.writtenData:Z
ifeq 21
15: aload 0
getfield org.h2.index.PageBtreeLeaf.data:Lorg/h2/store/Data;
invokevirtual org.h2.store.Data.getBytes:()[B
astore 4
start local 4 16: aload 0
getfield org.h2.index.PageBtreeLeaf.offsets:[I
aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
iaload
istore 5
start local 5 17: aload 4
iload 5
aload 4
18: iload 5
iload 3
iadd
aload 0
getfield org.h2.index.PageBtreeLeaf.offsets:[I
iload 1
iaload
iload 5
isub
19: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
20: aload 4
iload 5
iload 5
iload 3
iadd
iconst_0
invokestatic java.util.Arrays.fill:([BIIB)V
end local 5 end local 4 21: StackMap locals: int int
StackMap stack:
aload 0
aload 0
getfield org.h2.index.PageBtreeLeaf.offsets:[I
aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
iconst_1
iadd
iload 1
invokestatic org.h2.index.PageBtreeLeaf.remove:([III)[I
putfield org.h2.index.PageBtreeLeaf.offsets:[I
22: aload 0
getfield org.h2.index.PageBtreeLeaf.offsets:[I
iload 1
aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
iload 3
invokestatic org.h2.index.PageBtreeLeaf.add:([IIII)V
23: aload 0
aload 0
getfield org.h2.index.PageBtreeLeaf.rows:[Lorg/h2/result/SearchRow;
aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
iconst_1
iadd
iload 1
invokestatic org.h2.index.PageBtreeLeaf.remove:([Ljava/lang/Object;II)[Ljava/lang/Object;
checkcast org.h2.result.SearchRow[]
putfield org.h2.index.PageBtreeLeaf.rows:[Lorg/h2/result/SearchRow;
24: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lorg/h2/index/PageBtreeLeaf;
0 25 1 at I
11 25 2 startNext I
12 25 3 rowLength I
16 21 4 d [B
17 21 5 dataStart I
MethodParameters:
Name Flags
at
int getEntryCount();
descriptor: ()I
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/h2/index/PageBtreeLeaf;
org.h2.index.PageBtree split(int);
descriptor: (I)Lorg/h2/index/PageBtree;
flags: (0x0000)
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
invokevirtual org.h2.index.PageBtreeIndex.getPageStore:()Lorg/h2/store/PageStore;
invokevirtual org.h2.store.PageStore.allocatePage:()I
istore 2
start local 2 1: aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
iload 2
aload 0
getfield org.h2.index.PageBtreeLeaf.parentPageId:I
invokestatic org.h2.index.PageBtreeLeaf.create:(Lorg/h2/index/PageBtreeIndex;II)Lorg/h2/index/PageBtreeLeaf;
astore 3
start local 3 2: goto 5
3: StackMap locals: int org.h2.index.PageBtreeLeaf
StackMap stack:
aload 3
aload 0
iload 1
invokevirtual org.h2.index.PageBtreeLeaf.getRow:(I)Lorg/h2/result/SearchRow;
iconst_0
invokevirtual org.h2.index.PageBtreeLeaf.addRow:(Lorg/h2/result/SearchRow;Z)I
pop
4: aload 0
iload 1
invokevirtual org.h2.index.PageBtreeLeaf.removeRow:(I)V
5: StackMap locals:
StackMap stack:
iload 1
aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
if_icmplt 3
6: aload 0
invokevirtual org.h2.index.PageBtreeLeaf.memoryChange:()V
7: aload 3
invokevirtual org.h2.index.PageBtreeLeaf.memoryChange:()V
8: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/h2/index/PageBtreeLeaf;
0 9 1 splitPoint I
1 9 2 newPageId I
2 9 3 p2 Lorg/h2/index/PageBtreeLeaf;
MethodParameters:
Name Flags
splitPoint
org.h2.index.PageBtreeLeaf getFirstLeaf();
descriptor: ()Lorg/h2/index/PageBtreeLeaf;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/h2/index/PageBtreeLeaf;
org.h2.index.PageBtreeLeaf getLastLeaf();
descriptor: ()Lorg/h2/index/PageBtreeLeaf;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/h2/index/PageBtreeLeaf;
org.h2.result.SearchRow remove(org.h2.result.SearchRow);
descriptor: (Lorg/h2/result/SearchRow;)Lorg/h2/result/SearchRow;
flags: (0x0000)
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
iconst_0
iconst_1
invokevirtual org.h2.index.PageBtreeLeaf.find:(Lorg/h2/result/SearchRow;ZZZ)I
istore 2
start local 2 1: aload 0
iload 2
invokevirtual org.h2.index.PageBtreeLeaf.getRow:(I)Lorg/h2/result/SearchRow;
astore 3
start local 3 2: aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
aload 1
aload 3
invokevirtual org.h2.index.PageBtreeIndex.compareRows:(Lorg/h2/result/SearchRow;Lorg/h2/result/SearchRow;)I
ifne 3
aload 3
invokeinterface org.h2.result.SearchRow.getKey:()J
aload 1
invokeinterface org.h2.result.SearchRow.getKey:()J
lcmp
ifeq 6
3: StackMap locals: int org.h2.result.SearchRow
StackMap stack:
ldc 90112
4: aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
iconst_0
invokevirtual org.h2.index.PageBtreeIndex.getSQL:(Ljava/lang/StringBuilder;Z)Ljava/lang/StringBuilder;
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: invokestatic org.h2.message.DbException.get:(ILjava/lang/String;)Lorg/h2/message/DbException;
athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
invokevirtual org.h2.index.PageBtreeIndex.getPageStore:()Lorg/h2/store/PageStore;
aload 0
aload 0
getfield org.h2.index.PageBtreeLeaf.data:Lorg/h2/store/Data;
invokevirtual org.h2.store.PageStore.logUndo:(Lorg/h2/store/Page;Lorg/h2/store/Data;)V
7: aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
iconst_1
if_icmpne 9
8: aload 1
areturn
9: StackMap locals:
StackMap stack:
aload 0
iload 2
invokevirtual org.h2.index.PageBtreeLeaf.removeRow:(I)V
10: aload 0
invokevirtual org.h2.index.PageBtreeLeaf.memoryChange:()V
11: aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
invokevirtual org.h2.index.PageBtreeIndex.getPageStore:()Lorg/h2/store/PageStore;
aload 0
invokevirtual org.h2.store.PageStore.update:(Lorg/h2/store/Page;)V
12: iload 2
aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
if_icmpne 14
13: aload 0
iload 2
iconst_1
isub
invokevirtual org.h2.index.PageBtreeLeaf.getRow:(I)Lorg/h2/result/SearchRow;
areturn
14: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/h2/index/PageBtreeLeaf;
0 15 1 row Lorg/h2/result/SearchRow;
1 15 2 at I
2 15 3 delete Lorg/h2/result/SearchRow;
MethodParameters:
Name Flags
row
void freeRecursive();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
invokevirtual org.h2.index.PageBtreeIndex.getPageStore:()Lorg/h2/store/PageStore;
aload 0
aload 0
getfield org.h2.index.PageBtreeLeaf.data:Lorg/h2/store/Data;
invokevirtual org.h2.store.PageStore.logUndo:(Lorg/h2/store/Page;Lorg/h2/store/Data;)V
1: aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
invokevirtual org.h2.index.PageBtreeIndex.getPageStore:()Lorg/h2/store/PageStore;
aload 0
invokevirtual org.h2.index.PageBtreeLeaf.getPos:()I
invokevirtual org.h2.store.PageStore.free:(I)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/h2/index/PageBtreeLeaf;
int getRowCount();
descriptor: ()I
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/h2/index/PageBtreeLeaf;
void setRowCountStored(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/h2/index/PageBtreeLeaf;
0 1 1 rowCount I
MethodParameters:
Name Flags
rowCount
public void write();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.h2.index.PageBtreeLeaf.writeData:()V
1: aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
invokevirtual org.h2.index.PageBtreeIndex.getPageStore:()Lorg/h2/store/PageStore;
aload 0
invokevirtual org.h2.index.PageBtreeLeaf.getPos:()I
aload 0
getfield org.h2.index.PageBtreeLeaf.data:Lorg/h2/store/Data;
invokevirtual org.h2.store.PageStore.writePage:(ILorg/h2/store/Data;)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/h2/index/PageBtreeLeaf;
private void writeHead();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.h2.index.PageBtreeLeaf.data:Lorg/h2/store/Data;
invokevirtual org.h2.store.Data.reset:()V
1: aload 0
getfield org.h2.index.PageBtreeLeaf.data:Lorg/h2/store/Data;
iconst_4
2: aload 0
getfield org.h2.index.PageBtreeLeaf.onlyPosition:Z
ifeq 3
iconst_0
goto 4
StackMap locals: org.h2.index.PageBtreeLeaf
StackMap stack: org.h2.store.Data int
3: bipush 16
StackMap locals: org.h2.index.PageBtreeLeaf
StackMap stack: org.h2.store.Data int int
4: ior
i2b
5: invokevirtual org.h2.store.Data.writeByte:(B)V
6: aload 0
getfield org.h2.index.PageBtreeLeaf.data:Lorg/h2/store/Data;
iconst_0
invokevirtual org.h2.store.Data.writeShortInt:(I)V
7: aload 0
getfield org.h2.index.PageBtreeLeaf.data:Lorg/h2/store/Data;
aload 0
getfield org.h2.index.PageBtreeLeaf.parentPageId:I
invokevirtual org.h2.store.Data.writeInt:(I)V
8: aload 0
getfield org.h2.index.PageBtreeLeaf.data:Lorg/h2/store/Data;
aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
invokevirtual org.h2.index.PageBtreeIndex.getId:()I
invokevirtual org.h2.store.Data.writeVarInt:(I)V
9: aload 0
getfield org.h2.index.PageBtreeLeaf.data:Lorg/h2/store/Data;
aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
invokevirtual org.h2.store.Data.writeShortInt:(I)V
10: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/h2/index/PageBtreeLeaf;
private void writeData();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield org.h2.index.PageBtreeLeaf.written:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield org.h2.index.PageBtreeLeaf.optimizeUpdate:Z
ifne 4
3: aload 0
invokevirtual org.h2.index.PageBtreeLeaf.readAllRows:()V
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.h2.index.PageBtreeLeaf.writeHead:()V
5: iconst_0
istore 1
start local 1 6: goto 9
7: StackMap locals: int
StackMap stack:
aload 0
getfield org.h2.index.PageBtreeLeaf.data:Lorg/h2/store/Data;
aload 0
getfield org.h2.index.PageBtreeLeaf.offsets:[I
iload 1
iaload
invokevirtual org.h2.store.Data.writeShortInt:(I)V
8: iinc 1 1
StackMap locals:
StackMap stack:
9: iload 1
aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
if_icmplt 7
end local 1 10: aload 0
getfield org.h2.index.PageBtreeLeaf.writtenData:Z
ifeq 11
aload 0
getfield org.h2.index.PageBtreeLeaf.optimizeUpdate:Z
ifne 17
11: StackMap locals:
StackMap stack:
iconst_0
istore 1
start local 1 12: goto 15
13: StackMap locals: int
StackMap stack:
aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
aload 0
getfield org.h2.index.PageBtreeLeaf.data:Lorg/h2/store/Data;
aload 0
getfield org.h2.index.PageBtreeLeaf.offsets:[I
iload 1
iaload
aload 0
getfield org.h2.index.PageBtreeLeaf.rows:[Lorg/h2/result/SearchRow;
iload 1
aaload
aload 0
getfield org.h2.index.PageBtreeLeaf.onlyPosition:Z
invokevirtual org.h2.index.PageBtreeIndex.writeRow:(Lorg/h2/store/Data;ILorg/h2/result/SearchRow;Z)V
14: iinc 1 1
StackMap locals:
StackMap stack:
15: iload 1
aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
if_icmplt 13
end local 1 16: aload 0
iconst_1
putfield org.h2.index.PageBtreeLeaf.writtenData:Z
17: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield org.h2.index.PageBtreeLeaf.written:Z
18: aload 0
invokevirtual org.h2.index.PageBtreeLeaf.memoryChange:()V
19: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lorg/h2/index/PageBtreeLeaf;
6 10 1 i I
12 16 1 i I
void find(org.h2.index.PageBtreeCursor, org.h2.result.SearchRow, boolean);
descriptor: (Lorg/h2/index/PageBtreeCursor;Lorg/h2/result/SearchRow;Z)V
flags: (0x0000)
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 2
iload 3
iconst_0
iconst_0
invokevirtual org.h2.index.PageBtreeLeaf.find:(Lorg/h2/result/SearchRow;ZZZ)I
istore 4
start local 4 1: iload 4
aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
if_icmple 7
2: aload 0
getfield org.h2.index.PageBtreeLeaf.parentPageId:I
ifne 4
3: return
4: StackMap locals: int
StackMap stack:
aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
aload 0
getfield org.h2.index.PageBtreeLeaf.parentPageId:I
invokevirtual org.h2.index.PageBtreeIndex.getPage:(I)Lorg/h2/index/PageBtree;
checkcast org.h2.index.PageBtreeNode
astore 5
start local 5 5: aload 5
aload 1
aload 2
iload 3
invokevirtual org.h2.index.PageBtreeNode.find:(Lorg/h2/index/PageBtreeCursor;Lorg/h2/result/SearchRow;Z)V
6: return
end local 5 7: StackMap locals:
StackMap stack:
aload 1
aload 0
iload 4
invokevirtual org.h2.index.PageBtreeCursor.setCurrent:(Lorg/h2/index/PageBtreeLeaf;I)V
8: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/h2/index/PageBtreeLeaf;
0 9 1 cursor Lorg/h2/index/PageBtreeCursor;
0 9 2 first Lorg/h2/result/SearchRow;
0 9 3 bigger Z
1 9 4 i I
5 7 5 next Lorg/h2/index/PageBtreeNode;
MethodParameters:
Name Flags
cursor
first
bigger
void last(org.h2.index.PageBtreeCursor);
descriptor: (Lorg/h2/index/PageBtreeCursor;)V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
iconst_1
isub
invokevirtual org.h2.index.PageBtreeCursor.setCurrent:(Lorg/h2/index/PageBtreeLeaf;I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/h2/index/PageBtreeLeaf;
0 2 1 cursor Lorg/h2/index/PageBtreeCursor;
MethodParameters:
Name Flags
cursor
void remapChildren();
descriptor: ()V
flags: (0x0000)
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/PageBtreeLeaf;
void nextPage(org.h2.index.PageBtreeCursor);
descriptor: (Lorg/h2/index/PageBtreeCursor;)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.h2.index.PageBtreeLeaf.parentPageId:I
ifne 3
1: aload 1
aconst_null
iconst_0
invokevirtual org.h2.index.PageBtreeCursor.setCurrent:(Lorg/h2/index/PageBtreeLeaf;I)V
2: return
3: StackMap locals:
StackMap stack:
aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
aload 0
getfield org.h2.index.PageBtreeLeaf.parentPageId:I
invokevirtual org.h2.index.PageBtreeIndex.getPage:(I)Lorg/h2/index/PageBtree;
checkcast org.h2.index.PageBtreeNode
astore 2
start local 2 4: aload 2
aload 1
aload 0
invokevirtual org.h2.index.PageBtreeLeaf.getPos:()I
invokevirtual org.h2.index.PageBtreeNode.nextPage:(Lorg/h2/index/PageBtreeCursor;I)V
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/h2/index/PageBtreeLeaf;
0 6 1 cursor Lorg/h2/index/PageBtreeCursor;
4 6 2 next Lorg/h2/index/PageBtreeNode;
MethodParameters:
Name Flags
cursor
void previousPage(org.h2.index.PageBtreeCursor);
descriptor: (Lorg/h2/index/PageBtreeCursor;)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.h2.index.PageBtreeLeaf.parentPageId:I
ifne 3
1: aload 1
aconst_null
iconst_0
invokevirtual org.h2.index.PageBtreeCursor.setCurrent:(Lorg/h2/index/PageBtreeLeaf;I)V
2: return
3: StackMap locals:
StackMap stack:
aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
aload 0
getfield org.h2.index.PageBtreeLeaf.parentPageId:I
invokevirtual org.h2.index.PageBtreeIndex.getPage:(I)Lorg/h2/index/PageBtree;
checkcast org.h2.index.PageBtreeNode
astore 2
start local 2 4: aload 2
aload 1
aload 0
invokevirtual org.h2.index.PageBtreeLeaf.getPos:()I
invokevirtual org.h2.index.PageBtreeNode.previousPage:(Lorg/h2/index/PageBtreeCursor;I)V
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/h2/index/PageBtreeLeaf;
0 6 1 cursor Lorg/h2/index/PageBtreeCursor;
4 6 2 next Lorg/h2/index/PageBtreeNode;
MethodParameters:
Name Flags
cursor
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "page["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual org.h2.index.PageBtreeLeaf.getPos:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "] b-tree leaf table:"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
1: aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
invokevirtual org.h2.index.PageBtreeIndex.getId:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " entries:"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
2: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/h2/index/PageBtreeLeaf;
public void moveTo(org.h2.engine.Session, int);
descriptor: (Lorg/h2/engine/Session;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
invokevirtual org.h2.index.PageBtreeIndex.getPageStore:()Lorg/h2/store/PageStore;
astore 3
start local 3 1: aload 0
invokevirtual org.h2.index.PageBtreeLeaf.readAllRows:()V
2: aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
iload 2
aload 0
getfield org.h2.index.PageBtreeLeaf.parentPageId:I
invokestatic org.h2.index.PageBtreeLeaf.create:(Lorg/h2/index/PageBtreeIndex;II)Lorg/h2/index/PageBtreeLeaf;
astore 4
start local 4 3: aload 3
aload 0
aload 0
getfield org.h2.index.PageBtreeLeaf.data:Lorg/h2/store/Data;
invokevirtual org.h2.store.PageStore.logUndo:(Lorg/h2/store/Page;Lorg/h2/store/Data;)V
4: aload 3
aload 4
aconst_null
invokevirtual org.h2.store.PageStore.logUndo:(Lorg/h2/store/Page;Lorg/h2/store/Data;)V
5: aload 4
aload 0
getfield org.h2.index.PageBtreeLeaf.rows:[Lorg/h2/result/SearchRow;
putfield org.h2.index.PageBtreeLeaf.rows:[Lorg/h2/result/SearchRow;
6: aload 4
aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
putfield org.h2.index.PageBtreeLeaf.entryCount:I
7: aload 4
aload 0
getfield org.h2.index.PageBtreeLeaf.offsets:[I
putfield org.h2.index.PageBtreeLeaf.offsets:[I
8: aload 4
aload 0
getfield org.h2.index.PageBtreeLeaf.onlyPosition:Z
putfield org.h2.index.PageBtreeLeaf.onlyPosition:Z
9: aload 4
aload 0
getfield org.h2.index.PageBtreeLeaf.parentPageId:I
putfield org.h2.index.PageBtreeLeaf.parentPageId:I
10: aload 4
aload 0
getfield org.h2.index.PageBtreeLeaf.start:I
putfield org.h2.index.PageBtreeLeaf.start:I
11: aload 3
aload 4
invokevirtual org.h2.store.PageStore.update:(Lorg/h2/store/Page;)V
12: aload 0
getfield org.h2.index.PageBtreeLeaf.parentPageId:I
ifne 15
13: aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
aload 1
iload 2
invokevirtual org.h2.index.PageBtreeIndex.setRootPageId:(Lorg/h2/engine/Session;I)V
14: goto 17
15: StackMap locals: org.h2.store.PageStore org.h2.index.PageBtreeLeaf
StackMap stack:
aload 3
aload 0
getfield org.h2.index.PageBtreeLeaf.parentPageId:I
invokevirtual org.h2.store.PageStore.getPage:(I)Lorg/h2/store/Page;
checkcast org.h2.index.PageBtreeNode
astore 5
start local 5 16: aload 5
aload 0
invokevirtual org.h2.index.PageBtreeLeaf.getPos:()I
iload 2
invokevirtual org.h2.index.PageBtreeNode.moveChild:(II)V
end local 5 17: StackMap locals:
StackMap stack:
aload 3
aload 0
invokevirtual org.h2.index.PageBtreeLeaf.getPos:()I
invokevirtual org.h2.store.PageStore.free:(I)V
18: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lorg/h2/index/PageBtreeLeaf;
0 19 1 session Lorg/h2/engine/Session;
0 19 2 newPos I
1 19 3 store Lorg/h2/store/PageStore;
3 19 4 p2 Lorg/h2/index/PageBtreeLeaf;
16 17 5 p Lorg/h2/index/PageBtreeNode;
MethodParameters:
Name Flags
session
newPos
protected void memoryChange();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=1
start local 0 0: invokestatic org.h2.index.PageBtreeIndex.isMemoryChangeRequired:()Z
ifne 2
1: return
2: StackMap locals:
StackMap stack:
sipush 184
aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
invokevirtual org.h2.index.PageBtreeIndex.getPageStore:()Lorg/h2/store/PageStore;
invokevirtual org.h2.store.PageStore.getPageSize:()I
iadd
istore 1
start local 1 3: aload 0
getfield org.h2.index.PageBtreeLeaf.rows:[Lorg/h2/result/SearchRow;
ifnull 12
4: iload 1
aload 0
invokevirtual org.h2.index.PageBtreeLeaf.getEntryCount:()I
bipush 12
imul
iadd
istore 1
5: iconst_0
istore 2
start local 2 6: goto 11
7: StackMap locals: int int
StackMap stack:
aload 0
getfield org.h2.index.PageBtreeLeaf.rows:[Lorg/h2/result/SearchRow;
iload 2
aaload
astore 3
start local 3 8: aload 3
ifnull 10
9: iload 1
aload 3
invokeinterface org.h2.result.SearchRow.getMemory:()I
iadd
istore 1
end local 3 10: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
11: iload 2
aload 0
getfield org.h2.index.PageBtreeLeaf.entryCount:I
if_icmplt 7
end local 2 12: StackMap locals:
StackMap stack:
aload 0
getfield org.h2.index.PageBtreeLeaf.index:Lorg/h2/index/PageBtreeIndex;
iload 1
iconst_2
ishr
invokevirtual org.h2.index.PageBtreeIndex.memoryChange:(I)V
13: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/h2/index/PageBtreeLeaf;
3 14 1 memory I
6 12 2 i I
8 10 3 r Lorg/h2/result/SearchRow;
}
SourceFile: "PageBtreeLeaf.java"