From 325500ea8013359f8c3820f9449c353f0c25a1bf Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Sat, 29 Mar 2008 19:05:10 +0000 Subject: Fix map type for database file name feature. --- .../com/amazon/carbonado/repo/sleepycat/BDBRepository.java | 2 +- .../carbonado/repo/sleepycat/BDBRepositoryBuilder.java | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/main') diff --git a/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepository.java b/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepository.java index bbd4ea3..243fffc 100644 --- a/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepository.java +++ b/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepository.java @@ -112,7 +112,7 @@ abstract class BDBRepository extends AbstractRepository final File mDataHome; final File mEnvHome; final String mSingleFileName; - final Map, String> mFileNameMap; + final Map mFileNameMap; private LayoutFactory mLayoutFactory; diff --git a/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepositoryBuilder.java b/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepositoryBuilder.java index c965eff..1def43e 100644 --- a/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepositoryBuilder.java +++ b/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepositoryBuilder.java @@ -85,7 +85,7 @@ public class BDBRepositoryBuilder extends AbstractRepositoryBuilder { private File mEnvHome; private File mDataHome; private String mSingleFileName; - private Map, String> mFileNames; + private Map mFileNames; private boolean mIndexSupport = true; private boolean mIndexRepairEnabled = true; private double mIndexThrottle = 1.0; @@ -314,22 +314,22 @@ public class BDBRepositoryBuilder extends AbstractRepositoryBuilder { * are log files only, this configuration is ignored. * * @param filename BDB database filename - * @param type type to store in file; if null, the file is used by default + * @param typeName type to store in file; if null, the file is used by default * for all types */ - public void setFileName(String filename, Class type) { + public void setFileName(String filename, String typeName) { mSingleFileName = null; if (mFileNames == null) { - mFileNames = new HashMap, String>(); + mFileNames = new HashMap(); } - mFileNames.put(type, filename); + mFileNames.put(typeName, filename); } - Map, String> getFileNameMap() { + Map getFileNameMap() { if (mFileNames == null) { return null; } - return new HashMap, String>(mFileNames); + return new HashMap(mFileNames); } /** -- cgit v1.2.3