--- /dev/null
+/*\r
+\r
+ Derby - Class org.apache.derby.impl.store.access.btree.BTreeRowPosition\r
+\r
+ Licensed to the Apache Software Foundation (ASF) under one or more\r
+ contributor license agreements. See the NOTICE file distributed with\r
+ this work for additional information regarding copyright ownership.\r
+ The ASF licenses this file to you under the Apache License, Version 2.0\r
+ (the "License"); you may not use this file except in compliance with\r
+ the License. You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+ Unless required by applicable law or agreed to in writing, software\r
+ distributed under the License is distributed on an "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ See the License for the specific language governing permissions and\r
+ limitations under the License.\r
+\r
+ */\r
+\r
+package org.apache.derby.impl.store.access.btree;\r
+\r
+\r
+import org.apache.derby.iapi.services.sanity.SanityManager;\r
+\r
+import org.apache.derby.iapi.store.raw.Page;\r
+\r
+import org.apache.derby.iapi.store.access.RowUtil;\r
+\r
+import org.apache.derby.iapi.types.DataValueDescriptor;\r
+\r
+import org.apache.derby.iapi.types.RowLocation;\r
+\r
+import org.apache.derby.impl.store.access.conglomerate.RowPosition;\r
+\r
+/**\r
+\r
+**/\r
+\r
+public class BTreeRowPosition extends RowPosition\r
+{\r
+ /**************************************************************************\r
+ * Fields of the class\r
+ **************************************************************************\r
+ */\r
+ public DataValueDescriptor[] current_positionKey;\r
+ public long current_scan_pageno;\r
+ public LeafControlRow current_leaf;\r
+ protected LeafControlRow next_leaf;\r
+ public DataValueDescriptor[] current_lock_template;\r
+ public RowLocation current_lock_row_loc;\r
+\r
+ /**************************************************************************\r
+ * Constructors for This class:\r
+ **************************************************************************\r
+ */\r
+ public BTreeRowPosition()\r
+ {\r
+ super();\r
+ }\r
+\r
+ /**************************************************************************\r
+ * Private/Protected methods of This class:\r
+ **************************************************************************\r
+ */\r
+\r
+ /**************************************************************************\r
+ * Public Methods of This class:\r
+ **************************************************************************\r
+ */\r
+ public void init()\r
+ {\r
+ super.init();\r
+\r
+ current_leaf = null;\r
+ current_positionKey = null;\r
+ }\r
+\r
+ public final void unlatch()\r
+ {\r
+ if (current_leaf != null)\r
+ {\r
+ current_leaf.release();\r
+ current_leaf = null;\r
+ }\r
+ current_slot = Page.INVALID_SLOT_NUMBER;\r
+ }\r
+\r
+ public final String toString()\r
+ {\r
+ String ret_string = null;\r
+\r
+ if (SanityManager.DEBUG)\r
+ {\r
+ ret_string = \r
+ super.toString() + \r
+ "current_positionKey = " + current_positionKey + \r
+ ";key = " + RowUtil.toString(current_positionKey) + \r
+ ";current_scan_pageno" + current_scan_pageno + \r
+ ";next_leaf" + next_leaf + \r
+ ";current_leaf" + current_leaf;\r
+ }\r
+\r
+ return(ret_string);\r
+ }\r
+\r
+\r
+ /**************************************************************************\r
+ * Public Methods of XXXX class:\r
+ **************************************************************************\r
+ */\r
+}\r