1/*- 2 * See the file LICENSE for redistribution information. 3 * 4 * Copyright (c) 2002,2008 Oracle. All rights reserved. 5 * 6 * $Id: EvolveStats.java,v 1.1 2008/02/07 17:12:27 mark Exp $ 7 */ 8 9package com.sleepycat.persist.evolve; 10 11/** 12 * Statistics accumulated during eager entity evolution. 13 * 14 * @see com.sleepycat.persist.evolve Class Evolution 15 * @author Mark Hayes 16 */ 17public class EvolveStats { 18 19 private int nRead; 20 private int nConverted; 21 22 EvolveStats() { 23 } 24 25 void add(int nRead, int nConverted) { 26 this.nRead += nRead; 27 this.nConverted += nConverted; 28 } 29 30 /** 31 * The total number of entities read during eager evolution. 32 */ 33 public int getNRead() { 34 return nRead; 35 } 36 37 /** 38 * The total number of entities converted during eager evolution. 39 */ 40 public int getNConverted() { 41 return nConverted; 42 } 43} 44