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;
  
 
INDupDeleteInfo encapsulates the information logged about the removal of a child from a duplicate IN during IN compression. Obsolete in log version 8, only used by DupConvert and some log readers.
 
 public class INDupDeleteInfo implements Loggable {
 
     private long deletedNodeId;
     private byte[] deletedMainKey;
     private byte[] deletedDupKey;
     private final DatabaseId dbId;
     private boolean dupRootDeletion;

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

    
Returns true if we are certain that this log entry reflects deletion of a DIN root. Returns false if it may or may not be a DIN root. [#18663]
 
     public boolean isDupRootDeletion() {
         return ;
     }
 
     /*
      * Logging support for writing.
      */

    
 
     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);
          = LogUtils.readByteArray(itemBufferunpacked);
         .readFromLog(itemBufferentryVersion);
 
         /*
          * This log entry is only logged for dup root deletion, starting in
          * JE 2.1.  We can't distinguish JE 2.1 through 3.2 using the log
          * version, so we are only certain that this is a dup root deletion for
          * version 6 (JE 3.3) and above. [#18663]
         */
         = (entryVersion >= 6);
    }

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

    
    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