objectlocation.java
来自「Java的面向对象数据库系统的源代码」· Java 代码 · 共 75 行
JAVA
75 行
// 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 + =
减小字号Ctrl + -
显示快捷键?