Coder Social home page Coder Social logo

velvetdb's People

Contributors

zakgof avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

velvetdb's Issues

Velvetdb backend not registered: xodus

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

No an Issue

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

Can't run unit tests in Eclipse

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.

dynamodb: exception when secondary indexes have same value

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.