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.cleaner;
 
The information necessary to lookup an LN. Used for pending LNs that are locked and must be migrated later, or cannot be migrated immediately during a split. Also used in a look ahead cache in FileProcessor. Is public for Sizeof only.
public final class LNInfo {
    private LN ln;
    private DatabaseId dbId;
    private byte[] key;
    public LNInfo(LN lnDatabaseId dbIdbyte[] key) {
        this. = ln;
        this. = dbId;
        this. = key;
    }
    LN getLN() {
        return ;
    }
    DatabaseId getDbId() {
        return ;
    }
    byte[] getKey() {
        return ;
    }

    
Note that the dbId is not counted because it is shared with the DatabaseImpl, where it is accounted for in the memory budget.
    int getMemorySize() {
        int size = .;
        if ( != null) {
            size += .getMemorySizeIncludedByParent();
        }
        if ( != null) {
            size += MemoryBudget.byteArraySize(.);
        }
        return size;
    }
New to GrepCode? Check out our FAQ X