zakgof / velvetdb Goto Github PK
View Code? Open in Web Editor NEWJava-centric embedded storage framework
License: Apache License 2.0
Java-centric embedded storage framework
License: Apache License 2.0
Hi. I downloaded velvet-db, built it with Gradle 4.2 and then used eclipse plugin buildship to create eclipse proejcts.
In Eclipse i am trying to run velvetdb-core PutGetTest.java and it's failing in VelvetTxnRule because VelvetTestSuite.velvetProvider is null. How do i initialize velvetProvider so i can run individual junit test classes such as PutGetTest.java? Thanks.
Hello
just wanted to tell you that i really like the design philosophy and i will use this framwork
Bravo for this great job.
cheers,
david
<dependency>
<groupId>com.github.zakgof</groupId>
<artifactId>velvetdb-mapdb</artifactId>
<version>0.7.0</version>
</dependency>
Not found in maven central (per instructions on README)
velvetdb-xodus
and velvetdb-dynamodb
are found.
https://mvnrepository.com/artifact/com.github.zakgof/velvetdb-mapdb
Caused by: java.lang.IllegalStateException: Duplicate key com.zakgof.db.velvet.dynamodb.DynamoDBVelvet$Store$StoreIndex@611dba71 at java.util.stream.Collectors.lambda$throwingMerger$0(Collectors.java:133) at java.util.HashMap.merge(HashMap.java:1253) at java.util.stream.Collectors.lambda$toMap$58(Collectors.java:1320) at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169) at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) at com.zakgof.db.velvet.dynamodb.DynamoDBVelvet$Store.<init>(DynamoDBVelvet.java:411) at com.zakgof.db.velvet.dynamodb.DynamoDBVelvet$SortedStore.<init>(DynamoDBVelvet.java:634) at com.zakgof.db.velvet.dynamodb.DynamoDBVelvet.sortedStoreWithProxy(DynamoDBVelvet.java:342) at com.zakgof.db.velvet.impl.cache.CachingVelvet$CachedSortedStore.<init>(CachingVelvet.java:154) at com.zakgof.db.velvet.impl.cache.CachingVelvet.sortedStore(CachingVelvet.java:40) at com.zakgof.db.velvet.impl.entity.SortedEntityDef.store(SortedEntityDef.java:23) at com.zakgof.db.velvet.impl.entity.SortedEntityDef.store(SortedEntityDef.java:15) at com.zakgof.db.velvet.impl.entity.EntityDef.queryKeys(EntityDef.java:174) at com.zakgof.db.velvet.impl.entity.EntityDef.queryList(EntityDef.java:162)
Velvetdb backend not registered: xodus is the error
private static IVelvetEnvironment createEnv() {
try {
PATH = Files.createTempDirectory("velvet").toString();
new File(PATH).mkdirs();
IVelvetEnvironment env = VelvetFactory
.openCaching("velvetdb://xodus/" + PATH.replace(File.separatorChar, '/'));
return env;
} catch (Exception e) {
e.printStackTrace();
System.exit(-1);
return null;
}
}
IVelvetEnvironment env = createEnv();
trigger
com.zakgof.db.velvet.VelvetException: Velvetdb backend not registered: xodus
at com.zakgof.db.velvet.VelvetFactory.lambda$open$1(VelvetFactory.java:42)
at java.base/java.util.Optional.orElseThrow(Optional.java:403)
at com.zakgof.db.velvet.VelvetFactory.open(VelvetFactory.java:42)
i tested xodus as well with all the correct dependencies and it work .
try (Environment env = Environments.newInstance("/./me/.myAppData")) {
env.executeInTransaction(txn -> {
final Store store = env.openStore("Messages", StoreConfig.WITHOUT_DUPLICATES, txn);
store.put(txn, StringBinding.stringToEntry("Hello"), StringBinding.stringToEntry("World!"));
});
}
May you help?
regards
david
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.