1 8 9 package com.sleepycat.je.tree; 10 11 import com.sleepycat.je.utilint.DbLsn; 12 13 17 public class TreeLocation { 18 public BIN bin; public int index; public byte[] lnKey; public long childLsn = DbLsn.NULL_LSN; 23 public void reset() { 24 bin = null; 25 index = -1; 26 lnKey = null; 27 childLsn = DbLsn.NULL_LSN; 28 } 29 30 public String toString() { 31 StringBuffer sb = new StringBuffer ("<TreeLocation bin=\""); 32 if (bin == null) { 33 sb.append("null"); 34 } else { 35 sb.append(bin.getNodeId()); 36 } 37 sb.append("\" index=\""); 38 sb.append(index); 39 sb.append("\" lnKey=\""); 40 sb.append(Key.dumpString(lnKey,0)); 41 sb.append("\" childLsn=\""); 42 sb.append(DbLsn.toString(childLsn)); 43 sb.append("\">"); 44 return sb.toString(); 45 } 46 } 47 48 | Popular Tags |