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

📄 objectlocation.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$package org.ozoneDB.core.storage.gammaStore;import java.io.IOException;import java.io.ObjectInputStream;import java.io.ObjectOutputStream;import java.io.Serializable;/** * Holds information on where exactly object data has been (or can be) * persisted. Objects are written to clusters, where the position has the * offset of where within a cluster the serialized object data starts. * * @author <a href="mailto:leoATmekenkampD0Tcom">Leo Mekenkamp (mind the anti sp@m)</a> * @version $Id$ */final class ObjectLocation implements Serializable {    private long oldClusterId;    private long oldPosition;    private long newClusterId;    private long newPosition;        ObjectLocation() {    }        public String toString() {        return super.toString() +                 "; oldClusterId: " + oldClusterId +                ", oldPosition: " + oldPosition +                ", newClusterId: " + newClusterId +                ", newPosition: " + newPosition;    }    final long getOldClusterId() {        return oldClusterId;    }    final void setOldClusterId(long oldClusterId) {        this.oldClusterId = oldClusterId;    }    final long getOldPosition() {        return oldPosition;    }    final void setOldPosition(long oldPosition) {        this.oldPosition = oldPosition;    }    final long getNewClusterId() {        return newClusterId;    }    final void setNewClusterId(long newClusterId) {        this.newClusterId = newClusterId;    }    final long getNewPosition() {        return newPosition;    }    final void setNewPosition(long newPosition) {        this.newPosition = newPosition;    }}

⌨️ 快捷键说明

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