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