KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sleepycat > je > tree > DBINReference


1 /*-
2  * See the file LICENSE for redistribution information.
3  *
4  * Copyright (c) 2002,2006 Oracle. All rights reserved.
5  *
6  * $Id: DBINReference.java,v 1.14 2006/10/30 21:14:25 bostic Exp $
7  */

8
9 package com.sleepycat.je.tree;
10
11 import com.sleepycat.je.dbi.DatabaseId;
12
13 /**
14  * A class that embodies a reference to a DBIN that does not rely on a
15  * java reference to the actual DBIN.
16  */

17 public class DBINReference extends BINReference {
18     private byte[] dupKey;
19
20     DBINReference(long nodeId, DatabaseId databaseId,
21                   byte[] idKey, byte[] dupKey) {
22     super(nodeId, databaseId, idKey);
23     this.dupKey = dupKey;
24     }
25
26     public byte[] getKey() {
27     return dupKey;
28     }
29
30     public byte[] getData() {
31     return idKey;
32     }
33
34     public String JavaDoc toString() {
35     return super.toString() + " dupKey=" + Key.dumpString(dupKey, 0);
36     }
37 }
38
39
Popular Tags