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

📄 multiplerecnodataentry.java

📁 berkeley db 4.6.21的源码。berkeley db是一个简单的数据库管理系统
💻 JAVA
字号:
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 2002,2007 Oracle.  All rights reserved. * * $Id: MultipleRecnoDataEntry.java,v 12.6 2007/05/17 15:15:41 bostic Exp $ */package com.sleepycat.db;import com.sleepycat.db.internal.DbConstants;import com.sleepycat.db.internal.DbUtil;public class MultipleRecnoDataEntry extends MultipleEntry {    public MultipleRecnoDataEntry() {        super(null, 0, 0);    }    public MultipleRecnoDataEntry(final byte[] data) {        super(data, 0, (data == null) ? 0 : data.length);    }    public MultipleRecnoDataEntry(final byte[] data,                                  final int offset,                                  final int size) {        super(data, offset, size);    }    /**     * Return the bulk retrieval flag and reset the entry position so that the     * next set of key/data can be returned.     */    /* package */    int getMultiFlag() {        pos = 0;        return DbConstants.DB_MULTIPLE_KEY;    }    public boolean next(final DatabaseEntry recno, final DatabaseEntry data) {        if (pos == 0)            pos = ulen - INT32SZ;        final int keyoff = DbUtil.array2int(this.data, pos);        // crack out the key offset and the data offset and length.        if (keyoff < 0)            return false;        pos -= INT32SZ;        final int dataoff = DbUtil.array2int(this.data, pos);        pos -= INT32SZ;        final int datasz = DbUtil.array2int(this.data, pos);        pos -= INT32SZ;        recno.setData(this.data);        recno.setOffset(keyoff);        recno.setSize(INT32SZ);        data.setData(this.data);        data.setOffset(dataoff);        data.setSize(datasz);        return true;    }}

⌨️ 快捷键说明

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