Giter Club home page Giter Club logo

exocron-solutions / electra Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 2.0 516 KB

An insanely fast and lightweight key value database with json and binary support. Provides insanely fast binary protocol server alongside with simple and robust REST service. One database to to rule them all.

Home Page: https://www.exocron-solutions.de/

License: MIT License

Java 100.00%
database db dbms lightweight btree-indexes koloboke indexeddb key-value key-value-store performance

electra's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar felixklauke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

electra's Issues

Embedding the DB

ElectraDatabase database = DatabaseFactory.createDatabase(Paths.get("./"));

From the above code it becomes unclear how to get access to the Storage Engine to perform any operation.
I am purely looking at this from a Embedded usage standpoint.
Some modifications we tried to achieve the same are included below, if you like this approach I can go forward with a pull-request.

public interface ElectraDatabase extends AutoCloseable {

public StorageEngine getEngine();

}

public class ElectraDatabaseImpl implements ElectraDatabase {

private final StorageEngine storageEngine;

ElectraDatabaseImpl(Path databaseFolder) throws EngineInitializationException {
Path indexPath = databaseFolder.resolve("index.lctr");
Path dataPath = databaseFolder.resolve("data.lctr");

storageEngine = new SimpleStorageEngine(dataPath, indexPath);

}

@OverRide
public void close() throws IOException {
storageEngine.close();
}

@OverRide
public StorageEngine getEngine() {
return storageEngine;
}
}

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.