public abstract class org.h2.index.PageBtree extends org.h2.store.Page
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.h2.index.PageBtree
super_class: org.h2.store.Page
{
static final int ROOT;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 0
static final int UNKNOWN_ROWCOUNT;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: -1
protected final org.h2.index.PageBtreeIndex index;
descriptor: Lorg/h2/index/PageBtreeIndex;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected int parentPageId;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected final org.h2.store.Data data;
descriptor: Lorg/h2/store/Data;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected int[] offsets;
descriptor: [I
flags: (0x0004) ACC_PROTECTED
protected int entryCount;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected org.h2.result.SearchRow[] rows;
descriptor: [Lorg/h2/result/SearchRow;
flags: (0x0004) ACC_PROTECTED
protected int start;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected boolean onlyPosition;
descriptor: Z
flags: (0x0004) ACC_PROTECTED
protected boolean written;
descriptor: Z
flags: (0x0004) ACC_PROTECTED
private final int memoryEstimated;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(org.h2.index.PageBtreeIndex, int, org.h2.store.Data);
descriptor: (Lorg/h2/index/PageBtreeIndex;ILorg/h2/store/Data;)V
flags: (0x0000)
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial org.h2.store.Page.<init>:()V
1: aload 0
aload 1
putfield org.h2.index.PageBtree.index:Lorg/h2/index/PageBtreeIndex;
2: aload 0
aload 3
putfield org.h2.index.PageBtree.data:Lorg/h2/store/Data;
3: aload 0
iload 2
invokevirtual org.h2.index.PageBtree.setPos:(I)V
4: aload 0
aload 1
invokevirtual org.h2.index.PageBtreeIndex.getMemoryPerPage:()I
putfield org.h2.index.PageBtree.memoryEstimated:I
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/h2/index/PageBtree;
0 6 1 index Lorg/h2/index/PageBtreeIndex;
0 6 2 pageId I
0 6 3 data Lorg/h2/store/Data;
MethodParameters:
Name Flags
index
pageId
data
abstract int getRowCount();
descriptor: ()I
flags: (0x0400) ACC_ABSTRACT
abstract void setRowCountStored(int);
descriptor: (I)V
flags: (0x0400) ACC_ABSTRACT
MethodParameters:
Name Flags
rowCount
int find(org.h2.result.SearchRow, boolean, boolean, boolean);
descriptor: (Lorg/h2/result/SearchRow;ZZZ)I
flags: (0x0000)
Code:
stack=3, locals=10, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
ifnonnull 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
iconst_0
istore 5
start local 5 3: aload 0
getfield org.h2.index.PageBtree.entryCount:I
istore 6
start local 6 4: iconst_1
istore 7
start local 7 5: goto 21
6: StackMap locals: int int int
StackMap stack:
iload 5
iload 6
iadd
iconst_1
iushr
istore 8
start local 8 7: aload 0
iload 8
invokevirtual org.h2.index.PageBtree.getRow:(I)Lorg/h2/result/SearchRow;
astore 9
start local 9 8: aload 0
getfield org.h2.index.PageBtree.index:Lorg/h2/index/PageBtreeIndex;
aload 9
aload 1
invokevirtual org.h2.index.PageBtreeIndex.compareRows:(Lorg/h2/result/SearchRow;Lorg/h2/result/SearchRow;)I
istore 7
9: iload 7
ifne 17
10: iload 3
ifeq 13
aload 0
getfield org.h2.index.PageBtree.index:Lorg/h2/index/PageBtreeIndex;
getfield org.h2.index.PageBtreeIndex.indexType:Lorg/h2/index/IndexType;
invokevirtual org.h2.index.IndexType.isUnique:()Z
ifeq 13
11: aload 0
getfield org.h2.index.PageBtree.index:Lorg/h2/index/PageBtreeIndex;
aload 1
invokevirtual org.h2.index.PageBtreeIndex.mayHaveNullDuplicates:(Lorg/h2/result/SearchRow;)Z
ifne 13
12: aload 0
getfield org.h2.index.PageBtree.index:Lorg/h2/index/PageBtreeIndex;
aload 1
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokevirtual org.h2.index.PageBtreeIndex.getDuplicateKeyException:(Ljava/lang/String;)Lorg/h2/message/DbException;
athrow
13: StackMap locals: int org.h2.result.SearchRow
StackMap stack:
iload 4
ifeq 17
14: aload 0
getfield org.h2.index.PageBtree.index:Lorg/h2/index/PageBtreeIndex;
aload 9
aload 1
invokevirtual org.h2.index.PageBtreeIndex.compareKeys:(Lorg/h2/result/SearchRow;Lorg/h2/result/SearchRow;)I
istore 7
15: iload 7
ifne 17
16: iload 8
ireturn
17: StackMap locals:
StackMap stack:
iload 7
ifgt 18
iload 2
ifne 20
iload 7
ifne 20
18: StackMap locals:
StackMap stack:
iload 8
istore 6
19: goto 21
20: StackMap locals:
StackMap stack:
iload 8
iconst_1
iadd
istore 5
end local 9 end local 8 21: StackMap locals:
StackMap stack:
iload 5
iload 6
if_icmplt 6
22: iload 5
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 23 0 this Lorg/h2/index/PageBtree;
0 23 1 compare Lorg/h2/result/SearchRow;
0 23 2 bigger Z
0 23 3 add Z
0 23 4 compareKeys Z
3 23 5 l I
4 23 6 r I
5 23 7 comp I
7 21 8 i I
8 21 9 row Lorg/h2/result/SearchRow;
MethodParameters:
Name Flags
compare
bigger
add
compareKeys
abstract int addRowTry(org.h2.result.SearchRow);
descriptor: (Lorg/h2/result/SearchRow;)I
flags: (0x0400) ACC_ABSTRACT
MethodParameters:
Name Flags
row
abstract void find(org.h2.index.PageBtreeCursor, org.h2.result.SearchRow, boolean);
descriptor: (Lorg/h2/index/PageBtreeCursor;Lorg/h2/result/SearchRow;Z)V
flags: (0x0400) ACC_ABSTRACT
MethodParameters:
Name Flags
cursor
first
bigger
abstract void last(org.h2.index.PageBtreeCursor);
descriptor: (Lorg/h2/index/PageBtreeCursor;)V
flags: (0x0400) ACC_ABSTRACT
MethodParameters:
Name Flags
cursor
org.h2.result.SearchRow getRow(int);
descriptor: (I)Lorg/h2/result/SearchRow;
flags: (0x0000)
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.h2.index.PageBtree.rows:[Lorg/h2/result/SearchRow;
iload 1
aaload
astore 2
start local 2 1: aload 2
ifnonnull 6
2: aload 0
getfield org.h2.index.PageBtree.index:Lorg/h2/index/PageBtreeIndex;
aload 0
getfield org.h2.index.PageBtree.data:Lorg/h2/store/Data;
aload 0
getfield org.h2.index.PageBtree.offsets:[I
iload 1
iaload
aload 0
getfield org.h2.index.PageBtree.onlyPosition:Z
iconst_1
invokevirtual org.h2.index.PageBtreeIndex.readRow:(Lorg/h2/store/Data;IZZ)Lorg/h2/result/SearchRow;
astore 2
3: aload 0
invokevirtual org.h2.index.PageBtree.memoryChange:()V
4: aload 0
getfield org.h2.index.PageBtree.rows:[Lorg/h2/result/SearchRow;
iload 1
aload 2
aastore
5: goto 10
StackMap locals: org.h2.result.SearchRow
StackMap stack:
6: aload 0
getfield org.h2.index.PageBtree.index:Lorg/h2/index/PageBtreeIndex;
aload 2
invokevirtual org.h2.index.PageBtreeIndex.hasData:(Lorg/h2/result/SearchRow;)Z
ifne 10
7: aload 0
getfield org.h2.index.PageBtree.index:Lorg/h2/index/PageBtreeIndex;
aload 2
invokeinterface org.h2.result.SearchRow.getKey:()J
invokevirtual org.h2.index.PageBtreeIndex.readRow:(J)Lorg/h2/result/SearchRow;
astore 2
8: aload 0
invokevirtual org.h2.index.PageBtree.memoryChange:()V
9: aload 0
getfield org.h2.index.PageBtree.rows:[Lorg/h2/result/SearchRow;
iload 1
aload 2
aastore
10: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/h2/index/PageBtree;
0 11 1 at I
1 11 2 row Lorg/h2/result/SearchRow;
MethodParameters:
Name Flags
at
protected void memoryChange();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
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/PageBtree;
abstract org.h2.index.PageBtree split(int);
descriptor: (I)Lorg/h2/index/PageBtree;
flags: (0x0400) ACC_ABSTRACT
MethodParameters:
Name Flags
splitPoint
void setPageId(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
getfield org.h2.index.PageBtree.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.PageBtree.changeCount:J
1: aload 0
iconst_0
putfield org.h2.index.PageBtree.written:Z
2: aload 0
getfield org.h2.index.PageBtree.index:Lorg/h2/index/PageBtreeIndex;
invokevirtual org.h2.index.PageBtreeIndex.getPageStore:()Lorg/h2/store/PageStore;
aload 0
invokevirtual org.h2.index.PageBtree.getPos:()I
invokevirtual org.h2.store.PageStore.removeFromCache:(I)V
3: aload 0
iload 1
invokevirtual org.h2.index.PageBtree.setPos:(I)V
4: aload 0
getfield org.h2.index.PageBtree.index:Lorg/h2/index/PageBtreeIndex;
invokevirtual org.h2.index.PageBtreeIndex.getPageStore:()Lorg/h2/store/PageStore;
aload 0
aconst_null
invokevirtual org.h2.store.PageStore.logUndo:(Lorg/h2/store/Page;Lorg/h2/store/Data;)V
5: aload 0
invokevirtual org.h2.index.PageBtree.remapChildren:()V
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/h2/index/PageBtree;
0 7 1 id I
MethodParameters:
Name Flags
id
abstract org.h2.index.PageBtreeLeaf getFirstLeaf();
descriptor: ()Lorg/h2/index/PageBtreeLeaf;
flags: (0x0400) ACC_ABSTRACT
abstract org.h2.index.PageBtreeLeaf getLastLeaf();
descriptor: ()Lorg/h2/index/PageBtreeLeaf;
flags: (0x0400) ACC_ABSTRACT
void setParentPageId(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.h2.index.PageBtree.index:Lorg/h2/index/PageBtreeIndex;
invokevirtual org.h2.index.PageBtreeIndex.getPageStore:()Lorg/h2/store/PageStore;
aload 0
aload 0
getfield org.h2.index.PageBtree.data:Lorg/h2/store/Data;
invokevirtual org.h2.store.PageStore.logUndo:(Lorg/h2/store/Page;Lorg/h2/store/Data;)V
1: aload 0
aload 0
getfield org.h2.index.PageBtree.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.PageBtree.changeCount:J
2: aload 0
iconst_0
putfield org.h2.index.PageBtree.written:Z
3: aload 0
iload 1
putfield org.h2.index.PageBtree.parentPageId:I
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/h2/index/PageBtree;
0 5 1 id I
MethodParameters:
Name Flags
id
abstract void remapChildren();
descriptor: ()V
flags: (0x0400) ACC_ABSTRACT
abstract org.h2.result.SearchRow remove(org.h2.result.SearchRow);
descriptor: (Lorg/h2/result/SearchRow;)Lorg/h2/result/SearchRow;
flags: (0x0400) ACC_ABSTRACT
MethodParameters:
Name Flags
row
abstract void freeRecursive();
descriptor: ()V
flags: (0x0400) ACC_ABSTRACT
protected void readAllRows();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=3, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: goto 7
2: StackMap locals: int
StackMap stack:
aload 0
getfield org.h2.index.PageBtree.rows:[Lorg/h2/result/SearchRow;
iload 1
aaload
astore 2
start local 2 3: aload 2
ifnonnull 6
4: aload 0
getfield org.h2.index.PageBtree.index:Lorg/h2/index/PageBtreeIndex;
aload 0
getfield org.h2.index.PageBtree.data:Lorg/h2/store/Data;
aload 0
getfield org.h2.index.PageBtree.offsets:[I
iload 1
iaload
aload 0
getfield org.h2.index.PageBtree.onlyPosition:Z
iconst_0
invokevirtual org.h2.index.PageBtreeIndex.readRow:(Lorg/h2/store/Data;IZZ)Lorg/h2/result/SearchRow;
astore 2
5: aload 0
getfield org.h2.index.PageBtree.rows:[Lorg/h2/result/SearchRow;
iload 1
aload 2
aastore
end local 2 6: StackMap locals:
StackMap stack:
iinc 1 1
StackMap locals:
StackMap stack:
7: iload 1
aload 0
getfield org.h2.index.PageBtree.entryCount:I
if_icmplt 2
end local 1 8: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/h2/index/PageBtree;
1 8 1 i I
3 6 2 row Lorg/h2/result/SearchRow;
public int getMemory();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.h2.index.PageBtree.memoryEstimated:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/h2/index/PageBtree;
public boolean canRemove();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.h2.index.PageBtree.changeCount:J
aload 0
getfield org.h2.index.PageBtree.index:Lorg/h2/index/PageBtreeIndex;
invokevirtual org.h2.index.PageBtreeIndex.getPageStore:()Lorg/h2/store/PageStore;
invokevirtual org.h2.store.PageStore.getChangeCount:()J
lcmp
ifge 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/h2/index/PageBtree;
}
SourceFile: "PageBtree.java"