本文整理汇总了Java中com.sleepycat.persist.evolve.Mutations类的典型用法代码示例。如果您正苦于以下问题:Java Mutations类的具体用法?Java Mutations怎么用?Java Mutations使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Mutations类属于com.sleepycat.persist.evolve包,在下文中一共展示了Mutations类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: Evolver
import com.sleepycat.persist.evolve.Mutations; //导入依赖的package包/类
Evolver(PersistCatalog catalog,
String storePrefix,
Mutations mutations,
Map<String,Format> newFormats,
boolean forceEvolution,
boolean disallowClassChanges) {
this.catalog = catalog;
this.storePrefix = storePrefix;
this.mutations = mutations;
this.newFormats = newFormats;
this.forceEvolution = forceEvolution;
this.disallowClassChanges = disallowClassChanges;
changedFormats = new IdentityHashMap<Format,Format>();
errors = new StringBuilder();
deleteDbs = new HashSet<String>();
renameDbs = new HashMap<String,String>();
renameFormats = new IdentityHashMap<Format,Format>();
evolvedFormats = new HashMap<Integer,Boolean>();
unprocessedFormats = new ArrayList<Format>();
subclassMap = catalog.getSubclassMap();
}
开发者ID:nologic,项目名称:nabs,代码行数:22,代码来源:Evolver.java
示例2: open
import com.sleepycat.persist.evolve.Mutations; //导入依赖的package包/类
private EntityStore open(boolean addConverter)
throws DatabaseException {
EnvironmentConfig envConfig = new EnvironmentConfig();
envConfig.setAllowCreate(true);
env = new Environment(envHome, envConfig);
Mutations mutations = new Mutations();
mutations.addConverter(new Converter
(MyEntity.class.getName(), 0, "b", new MyConversion()));
StoreConfig storeConfig = new StoreConfig();
storeConfig.setAllowCreate(true);
storeConfig.setMutations(mutations);
return new EntityStore(env, "foo", storeConfig);
}
开发者ID:nologic,项目名称:nabs,代码行数:17,代码来源:ConvertAndAddTest.java
示例3: getMutations
import com.sleepycat.persist.evolve.Mutations; //导入依赖的package包/类
@Override
Mutations getMutations() {
Mutations m = new Mutations();
m.addRenamer(new Renamer(NAME, 0, "pkeyint", "pkeyInteger"));
m.addRenamer(new Renamer(NAME, 0, "kboolean", "kBoolean"));
m.addRenamer(new Renamer(NAME, 0, "kbyte", "kByte"));
m.addRenamer(new Renamer(NAME, 0, "kshort", "kShort"));
m.addRenamer(new Renamer(NAME, 0, "kint", "kInteger"));
m.addRenamer(new Renamer(NAME, 0, "klong", "kLong"));
m.addRenamer(new Renamer(NAME, 0, "kfloat", "kFloat"));
m.addRenamer(new Renamer(NAME, 0, "kdouble", "kDouble"));
m.addRenamer(new Renamer(NAME, 0, "kchar", "kCharacter"));
m.addRenamer(new Renamer(NAME2, 0, "kcomposite", "kComposite"));
Conversion conv1 = new MyConversion1();
Conversion conv2 = new MyConversion2();
m.addConverter(new Converter(NAME, 0, "f_long2int", conv1));
m.addConverter(new Converter(NAME, 0, "f_String2long", conv2));
m.addConverter(new Converter(NAME2, 0, "f_long2Integer", conv1));
m.addConverter(new Converter(NAME2, 0, "f_String2Long", conv2));
return m;
}
开发者ID:nologic,项目名称:nabs,代码行数:24,代码来源:EvolveClasses.java
示例4: Evolver
import com.sleepycat.persist.evolve.Mutations; //导入依赖的package包/类
Evolver(PersistCatalog catalog,
String storePrefix,
Mutations mutations,
Map<String, Format> newFormats,
boolean forceEvolution,
boolean disallowClassChanges) {
this.catalog = catalog;
this.storePrefix = storePrefix;
this.mutations = mutations;
this.newFormats = newFormats;
this.forceEvolution = forceEvolution;
this.disallowClassChanges = disallowClassChanges;
changedFormats = new IdentityHashMap<Format, Format>();
errors = new StringBuilder();
deleteDbs = new HashSet<String>();
renameDbs = new HashMap<String, String>();
renameFormats = new IdentityHashMap<Format, Format>();
evolvedFormats = new HashMap<Integer, Boolean>();
unprocessedFormats = new ArrayList<Format>();
subclassMap = catalog.getSubclassMap();
}
开发者ID:prat0318,项目名称:dbms,代码行数:22,代码来源:Evolver.java
示例5: Evolver
import com.sleepycat.persist.evolve.Mutations; //导入依赖的package包/类
Evolver(PersistCatalog catalog,
String storePrefix,
Mutations mutations,
Map<String,Format> newFormats,
boolean forceEvolution,
boolean disallowClassChanges) {
this.catalog = catalog;
this.storePrefix = storePrefix;
this.mutations = mutations;
this.newFormats = newFormats;
this.forceEvolution = forceEvolution;
this.disallowClassChanges = disallowClassChanges;
errors = new StringBuilder();
deleteDbs = new HashSet<String>();
renameDbs = new HashMap<String,String>();
renameFormats = new IdentityHashMap<Format,Format>();
evolvedFormats = new HashMap<Integer,Boolean>();
unprocessedFormats = new ArrayList<Format>();
subclassMap = catalog.getSubclassMap();
}
开发者ID:nologic,项目名称:nabs,代码行数:21,代码来源:Evolver.java
示例6: BerkeleyDbTileStore
import com.sleepycat.persist.evolve.Mutations; //导入依赖的package包/类
public BerkeleyDbTileStore() throws TileStoreException {
super();
acquireTileStoreLock();
tileDbMap = new TreeMap<String, TileDatabase>();
envConfig = new EnvironmentConfig();
envConfig.setTransactional(false);
envConfig.setLocking(true);
envConfig.setExceptionListener(GUIExceptionHandler.getInstance());
envConfig.setAllowCreate(true);
envConfig.setSharedCache(true);
envConfig.setCachePercent(50);
mutations = new Mutations();
String oldPackage1 = "tac.tilestore.berkeleydb";
String oldPackage2 = "tac.program.tilestore.berkeleydb";
String entry = ".TileDbEntry";
String key = ".TileDbEntry$TileDbKey";
mutations.addRenamer(new Renamer(oldPackage1 + entry, 0, TileDbEntry.class.getName()));
mutations.addRenamer(new Renamer(oldPackage1 + key, 0, TileDbKey.class.getName()));
mutations.addRenamer(new Renamer(oldPackage1 + entry, 1, TileDbEntry.class.getName()));
mutations.addRenamer(new Renamer(oldPackage1 + key, 1, TileDbKey.class.getName()));
mutations.addRenamer(new Renamer(oldPackage2 + entry, 2, TileDbEntry.class.getName()));
mutations.addRenamer(new Renamer(oldPackage2 + key, 2, TileDbKey.class.getName()));
// for (Renamer r : mutations.getRenamers())
// log.debug(r.toString());
Runtime.getRuntime().addShutdownHook(new ShutdownThread(true));
}
开发者ID:bh4017,项目名称:mobac,代码行数:31,代码来源:BerkeleyDbTileStore.java
示例7: getMutations
import com.sleepycat.persist.evolve.Mutations; //导入依赖的package包/类
@Override
Mutations getMutations() {
Mutations m = new Mutations();
m.addDeleter(new Deleter(NAME, 0));
m.addDeleter(new Deleter(NAME2, 0));
return m;
}
开发者ID:nologic,项目名称:nabs,代码行数:8,代码来源:EvolveClasses.java
示例8: getMutations
import com.sleepycat.persist.evolve.Mutations; //导入依赖的package包/类
/**
* @see EntityStore#getMutations()
*/
public Mutations getMutations() {
return delegate().getMutations();
}
开发者ID:jronrun,项目名称:benayn,代码行数:7,代码来源:Berkeley.java
注:本文中的com.sleepycat.persist.evolve.Mutations类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论