Debian Codegraph @

lang/java/src/com/sleepycat/persist/evolve/EvolveStats.java

raw
1 /*-
2 * See the file LICENSE for redistribution information.
3 *
4 * Copyright (c) 2002, 2013 Oracle and/or its affiliates. All rights reserved.
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
21 EvolveStats() {
22 }
23
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 public int getNRead() {
33 return nRead;
34 }
35
36 /**
37 * The total number of entities converted during eager evolution.
38 */
39 public int getNConverted() {
40 return nConverted;
41 }
42 }