summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2008-03-29 19:05:10 +0000
committerBrian S. O'Neill <bronee@gmail.com>2008-03-29 19:05:10 +0000
commit325500ea8013359f8c3820f9449c353f0c25a1bf (patch)
tree28ca977891ccf8c65187b6ed50e76a648b4c3b62 /src/main/java/com/amazon
parent8925e05f93c33c44dcfb119b327aa28772671e41 (diff)
Fix map type for database file name feature.
Diffstat (limited to 'src/main/java/com/amazon')
-rw-r--r--src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepository.java2
-rw-r--r--src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepositoryBuilder.java14
2 files changed, 8 insertions, 8 deletions
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<Txn> extends AbstractRepository<Txn>
final File mDataHome;
final File mEnvHome;
final String mSingleFileName;
- final Map<Class<?>, String> mFileNameMap;
+ final Map<String, String> 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<Class<?>, String> mFileNames;
+ private Map<String, String> 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<? extends Storable> type) {
+ public void setFileName(String filename, String typeName) {
mSingleFileName = null;
if (mFileNames == null) {
- mFileNames = new HashMap<Class<?>, String>();
+ mFileNames = new HashMap<String, String>();
}
- mFileNames.put(type, filename);
+ mFileNames.put(typeName, filename);
}
- Map<Class<?>, String> getFileNameMap() {
+ Map<String, String> getFileNameMap() {
if (mFileNames == null) {
return null;
}
- return new HashMap<Class<?>, String>(mFileNames);
+ return new HashMap<String, String>(mFileNames);
}
/**