1 /*- 2 * See the file LICENSE for redistribution information. 3 * 4 * Copyright (c) 2002, 2014 Oracle and/or its affiliates. All rights reserved. 5 * 6 */ 7 8 package com.sleepycat.je.tree; 9 10 import com.sleepycat.je.log.LogContext; 11 12 /** 13 * Extends LogContext to add fields used by IN.beforeLog and afterLog methods. 14 */ 15 public class INLogContext extends LogContext { 16 17 /** 18 * Whether a BIN-delta may be logged. A BIN-delta is logged rather than a 19 * BIN if this field is true and other qualifications are met for a delta. 20 * Used by BIN.beforeLog. 21 * 22 * Set by caller. 23 */ 24 public boolean allowDeltas; 25 26 /** 27 * Whether a full BIN may be compressed before being logged. Some callers 28 * cannot tolerate compression because they rely on the stability of 29 * certain slots or slot indices. 30 * Used by BIN.beforeLog. 31 * 32 * Set by caller. 33 */ 34 public boolean allowCompress; 35 } 36