1 21 22 package org.apache.derby.impl.store.access.btree; 23 24 25 import org.apache.derby.iapi.services.sanity.SanityManager; 26 27 import org.apache.derby.iapi.store.raw.Page; 28 29 import org.apache.derby.iapi.store.access.RowUtil; 30 31 import org.apache.derby.iapi.types.DataValueDescriptor; 32 33 import org.apache.derby.iapi.types.RowLocation; 34 35 import org.apache.derby.impl.store.access.conglomerate.RowPosition; 36 37 40 41 public class BTreeRowPosition extends RowPosition 42 { 43 47 public DataValueDescriptor[] current_positionKey; 48 public long current_scan_pageno; 49 public LeafControlRow current_leaf; 50 protected LeafControlRow next_leaf; 51 public DataValueDescriptor[] current_lock_template; 52 public RowLocation current_lock_row_loc; 53 54 58 public BTreeRowPosition() 59 { 60 super(); 61 } 62 63 67 68 72 public void init() 73 { 74 super.init(); 75 76 current_leaf = null; 77 current_positionKey = null; 78 } 79 80 public final void unlatch() 81 { 82 if (current_leaf != null) 83 { 84 current_leaf.release(); 85 current_leaf = null; 86 } 87 current_slot = Page.INVALID_SLOT_NUMBER; 88 } 89 90 public final String toString() 91 { 92 String ret_string = null; 93 94 if (SanityManager.DEBUG) 95 { 96 ret_string = 97 super.toString() + 98 "current_positionKey = " + current_positionKey + 99 ";key = " + RowUtil.toString(current_positionKey) + 100 ";current_scan_pageno" + current_scan_pageno + 101 ";next_leaf" + next_leaf + 102 ";current_leaf" + current_leaf; 103 } 104 105 return(ret_string); 106 } 107 108 109 113 } 114 | Popular Tags |