⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nodeidloc.java

📁 Java的面向对象数据库系统的源代码
💻 JAVA
字号:
// You can redistribute this software and/or modify it under the terms of// the Ozone Core License version 1 published by ozone-db.org.//// Copyright (C) 2003-@year@, Leo Mekenkamp. All rights reserved.//// $Id: NodeIdLoc.java,v 1.2 2004/01/25 20:53:42 leomekenkamp Exp $package org.ozoneDB.core.storage.gammaStore;import java.io.Serializable;/** * @author <a href="mailto:leoATmekenkampD0Tcom">Leo Mekenkamp (mind the anti sp@m)</a> * @version $Id: NodeIdLoc.java,v 1.2 2004/01/25 20:53:42 leomekenkamp Exp $ */public class NodeIdLoc extends Loc {        protected long[] nodeIds;        public NodeIdLoc(int capacity, float bufferFactor) {        super(capacity, bufferFactor);        nodeIds = new long[keys.length];    }    public NodeIdLoc(int capacity, int slack) {        super(capacity, slack);        nodeIds = new long[keys.length];    }    public void putNodeId(int pos, long nodeId) {        nodeIds[pos] = nodeId;    }        protected void move(int from, int to) {        super.move(from, to);        nodeIds[to] = nodeIds[from];    }        public long getNodeId(int pos) {        return nodeIds[pos];    }    public String toString() {        StringBuffer result = new StringBuffer(super.toString());        result.append(" nodes [");        for (int i = 0; i < nodeIds.length; i++) {            result.append(nodeIds[i]);            if (!isInUse(i)) {                result.append("D");            }            if (i < nodeIds.length - 1) {                result.append(", ");            } else {                result.append("]");            }        }                return result.toString();    }    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -