{ "name": "FixedRecNode", "comment": "FixedRecNode is an implementation of a BTree leaf node\n which utilizes long key values and stores fixed-length records.\n \n This type of node has the following layout within a single DataBuffer \n (field size in bytes):\n \n | NodeType(1) | KeyCount(4) | PrevLeafId(4) | NextLeafId(4) | Key0(8) | Rec0 | ...\n \n | KeyN(8) | RecN |\n ", "javadoc": "\u003ccode\u003eFixedRecNode\u003c/code\u003e is an implementation of a BTree leaf node\n which utilizes long key values and stores fixed-length records.\n \u003cp\u003e\n This type of node has the following layout within a single DataBuffer \n (field size in bytes):\n \u003cpre\u003e\n | NodeType(1) | KeyCount(4) | PrevLeafId(4) | NextLeafId(4) | Key0(8) | Rec0 | ...\n \n | KeyN(8) | RecN |\n \u003c/pre\u003e", "static": false, "implements": [], "extends": "db.LongKeyRecordNode", "fields": [ { "name": "HEADER_SIZE", "comment": "", "javadoc": "", "static": true, "type_long": "int", "type_short": "int", "constant_value": "13" }, { "name": "ENTRY_BASE_OFFSET", "comment": "", "javadoc": "", "static": true, "type_long": "int", "type_short": "int", "constant_value": "13" }, { "name": "KEY_SIZE", "comment": "", "javadoc": "", "static": true, "type_long": "int", "type_short": "int", "constant_value": "8" }, { "name": "EMPTY_ID_LIST", "comment": "", "javadoc": "", "static": true, "type_long": "int[]", "type_short": "int[]", "constant_value": null }, { "name": "entrySize", "comment": "", "javadoc": "", "static": false, "type_long": "int", "type_short": "int", "constant_value": null }, { "name": "recordLength", "comment": "", "javadoc": "", "static": false, "type_long": "int", "type_short": "int", "constant_value": null } ], "methods": [ { "name": "\u003cinit\u003e", "comment": "Construct an existing long-key fixed-length record leaf node.", "javadoc": "Construct an existing long-key fixed-length record leaf node.\n@param nodeMgr table node manager instance\n@param buf node buffer\n@param recordLength fixed record length", "static": false, "params": [ { "name": "nodeMgr", "type_long": "db.NodeMgr", "type_short": "NodeMgr", "comment": "table node manager instance" }, { "name": "buf", "type_long": "db.buffers.DataBuffer", "type_short": "DataBuffer", "comment": "node buffer" }, { "name": "recordLength", "type_long": "int", "type_short": "int", "comment": "fixed record length" } ], "return": { "type_long": "void", "type_short": "void", "comment": "" }, "throws": [] }, { "name": "\u003cinit\u003e", "comment": "Construct a new long-key fixed-length record leaf node.", "javadoc": "Construct a new long-key fixed-length record leaf node.\n@param nodeMgr table node manager instance\n@param recordLength fixed record length\n@param prevLeafId node buffer id for previous leaf ( \u0026lt; 0: no leaf)\n@param nextLeafId node buffer id for next leaf ( \u0026lt; 0 : no leaf)\n@throws IOException thrown if IO error occurs", "static": false, "params": [ { "name": "nodeMgr", "type_long": "db.NodeMgr", "type_short": "NodeMgr", "comment": "table node manager instance" }, { "name": "recordLength", "type_long": "int", "type_short": "int", "comment": "fixed record length" }, { "name": "prevLeafId", "type_long": "int", "type_short": "int", "comment": "node buffer id for previous leaf ( 0: no leaf)" }, { "name": "nextLeafId", "type_long": "int", "type_short": "int", "comment": "node buffer id for next leaf ( 0 : no leaf)" } ], "return": { "type_long": "void", "type_short": "void", "comment": "" }, "throws": [ { "type_long": "java.io.IOException", "type_short": "IOException", "comment": "thrown if IO error occurs" } ] }, { "name": "createNewLeaf", "comment": "", "javadoc": "", "static": false, "params": [ { "name": "prevLeafId", "type_long": "int", "type_short": "int", "comment": "" }, { "name": "nextLeafId", "type_long": "int", "type_short": "int", "comment": "" } ], "return": { "type_long": "db.LongKeyRecordNode", "type_short": "LongKeyRecordNode", "comment": "" }, "throws": [ { "type_long": "java.io.IOException", "type_short": "IOException", "comment": "" } ] }, { "name": "getKey", "comment": "", "javadoc": "", "static": false, "params": [ { "name": "index", "type_long": "int", "type_short": "int", "comment": "" } ], "return": { "type_long": "long", "type_short": "long", "comment": "" }, "throws": [] }, { "name": "getKeyOffset", "comment": "", "javadoc": "", "static": false, "params": [ { "name": "index", "type_long": "int", "type_short": "int", "comment": "" } ], "return": { "type_long": "int", "type_short": "int", "comment": "" }, "throws": [] }, { "name": "getRecordOffset", "comment": "Get the record offset within the buffer", "javadoc": "Get the record offset within the buffer\n@param index key index\n@return record offset", "static": false, "params": [ { "name": "index", "type_long": "int", "type_short": "int", "comment": "key index" } ], "return": { "type_long": "int", "type_short": "int", "comment": "record offset" }, "throws": [] }, { "name": "shiftRecords", "comment": "Shift all records by one starting with index to the end.", "javadoc": "Shift all records by one starting with index to the end.\n@param index the smaller key index (0 \u0026lt;\u003d index1)\n@param rightShift shift right by one record if true, else shift left by\n one record.", "static": false, "params": [ { "name": "index", "type_long": "int", "type_short": "int", "comment": "the smaller key index (0 \u003d index1)" }, { "name": "rightShift", "type_long": "boolean", "type_short": "boolean", "comment": "shift right by one record if true, else shift left by\n one record." } ], "return": { "type_long": "void", "type_short": "void", "comment": "" }, "throws": [] }, { "name": "remove", "comment": "", "javadoc": "", "static": false, "params": [ { "name": "index", "type_long": "int", "type_short": "int", "comment": "" } ], "return": { "type_long": "void", "type_short": "void", "comment": "" }, "throws": [] }, { "name": "insertRecord", "comment": "", "javadoc": "", "static": false, "params": [ { "name": "index", "type_long": "int", "type_short": "int", "comment": "" }, { "name": "record", "type_long": "db.DBRecord", "type_short": "DBRecord", "comment": "" } ], "return": { "type_long": "boolean", "type_short": "boolean", "comment": "" }, "throws": [ { "type_long": "java.io.IOException", "type_short": "IOException", "comment": "" } ] }, { "name": "updateRecord", "comment": "", "javadoc": "", "static": false, "params": [ { "name": "index", "type_long": "int", "type_short": "int", "comment": "" }, { "name": "record", "type_long": "db.DBRecord", "type_short": "DBRecord", "comment": "" } ], "return": { "type_long": "db.LongKeyNode", "type_short": "LongKeyNode", "comment": "" }, "throws": [ { "type_long": "java.io.IOException", "type_short": "IOException", "comment": "" } ] }, { "name": "getRecord", "comment": "", "javadoc": "", "static": false, "params": [ { "name": "key", "type_long": "long", "type_short": "long", "comment": "" }, { "name": "schema", "type_long": "db.Schema", "type_short": "Schema", "comment": "" } ], "return": { "type_long": "db.DBRecord", "type_short": "DBRecord", "comment": "" }, "throws": [ { "type_long": "java.io.IOException", "type_short": "IOException", "comment": "" } ] }, { "name": "getRecord", "comment": "", "javadoc": "", "static": false, "params": [ { "name": "schema", "type_long": "db.Schema", "type_short": "Schema", "comment": "" }, { "name": "index", "type_long": "int", "type_short": "int", "comment": "" } ], "return": { "type_long": "db.DBRecord", "type_short": "DBRecord", "comment": "" }, "throws": [ { "type_long": "java.io.IOException", "type_short": "IOException", "comment": "" } ] }, { "name": "splitData", "comment": "", "javadoc": "", "static": false, "params": [ { "name": "newRightLeaf", "type_long": "db.LongKeyRecordNode", "type_short": "LongKeyRecordNode", "comment": "" } ], "return": { "type_long": "void", "type_short": "void", "comment": "" }, "throws": [] }, { "name": "delete", "comment": "", "javadoc": "", "static": false, "params": [], "return": { "type_long": "void", "type_short": "void", "comment": "" }, "throws": [ { "type_long": "java.io.IOException", "type_short": "IOException", "comment": "" } ] }, { "name": "getBufferReferences", "comment": "", "javadoc": "", "static": false, "params": [], "return": { "type_long": "int[]", "type_short": "int[]", "comment": "" }, "throws": [] } ] }