Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*-
   * See the file LICENSE for redistribution information.
   *
   * Copyright (c) 2002, 2013 Oracle and/or its affiliates.  All rights reserved.
   *
   */
  
  package com.sleepycat.je.tree.dupConvert;
  
 
INDeleteInfo encapsulates the information logged about the removal of a child from an IN during IN compression. As of JE 3.3.87, INDelete is no longer logged becaue the root compression feature has been removed. However, INDelete must still be processed in log files created with 3.3.87 and earlier. [#17546] Obsolete in log version 8, only used by DupConvert and some log readers.
 
 public class INDeleteInfo implements Loggable {
 
     private long deletedNodeId;
     private byte[] deletedIdKey;
     private final DatabaseId dbId;

    
Used by logging system only.
 
     public INDeleteInfo() {
          = new DatabaseId();
     }
 
     /*
      * Accessors.
      */
     public long getDeletedNodeId() {
         return ;
     }
 
     public byte[] getDeletedIdKey() {
         return ;
     }
 
     public DatabaseId getDatabaseId() {
         return ;
     }

    
 
     public int getLogSize() {
         throw EnvironmentFailureException.unexpectedState();
     }

    
 
     public void writeToLog(ByteBuffer logBuffer) {
         throw EnvironmentFailureException.unexpectedState();
     }

    
 
     public void readFromLog(ByteBuffer itemBufferint entryVersion) {
         boolean unpacked = (entryVersion < 6);
          = LogUtils.readLong(itemBufferunpacked);
          = LogUtils.readByteArray(itemBufferunpacked);
         .readFromLog(itemBufferentryVersion);
     }

    
 
     public void dumpLog(StringBuilder sbboolean verbose) {
         sb.append("<INDeleteEntry node=\"").append();
         sb.append("\">");
         sb.append(Key.dumpString(, 0));
         .dumpLog(sbverbose);
         sb.append("</INDeleteEntry>");
     }

    
 
     public long getTransactionId() {
         return 0;
     }

    

See also:
com.sleepycat.je.log.Loggable.logicalEquals(com.sleepycat.je.log.Loggable) Always return false, this item should never be compared.
    public boolean logicalEquals(Loggable other) {
        return false;
    }
New to GrepCode? Check out our FAQ X