summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/amazon/carbonado')
-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);
}
/**