DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Software Design and Architecture
  3. Integration
  4. What's New In Eclipse JNoSQL 0.0.7

What's New In Eclipse JNoSQL 0.0.7

Let's take a look at what's new in Eclipse JNoSQL 0.0.7 and explore how it improves queries in Cassandra with pagination state.

Otavio Santana user avatar by
Otavio Santana
CORE ·
Oct. 21, 18 · Opinion
Like (3)
Save
Tweet
Share
11.15K Views

Join the DZone community and get the full member experience.

Join For Free

Eclipse JNoSQL is a Java framework that streamlines the integration of Java applications with NoSQL databases. It defines a set of APIs and provides a standard implementation for most NoSQL databases. This clearly helps to achieve very low coupling with the underlying NoSQL technologies used in applications. The version 0.0.7 comes with the hot query as text. This post will cover this release.

The newest Eclipse JNoSQL comes mostly with performance improvements and bug fixes. Furthermore, there are two highlights.

Improves Queries in Cassandra With Pagination State

The Cassandra PagingState represents the next page to be fetched if the query is multi-page. It can be saved and reused later on the same statement.

Thereby, Cassandra driver has a new class that is a specialization of DocumentQuery that might have a pagination state as String.

ColumnQuery query = select().from("entity").limit(6).build();
CassandraQuery cassandraQuery = CassandraQuery.of(query);
assertFalse(cassandraQuery.getPagingState().isPresent());
List<Person> entities = entityManager.select(cassandraQuery);
//it will return six entities and feed the paging state
assertTrue(cassandraQuery.getPagingState().isPresent());

Improving Integration Tests With Test Container

To improve the integration test at communication implementation with NoSQL database such as ArangoDB, this version gets an adoption of Test Container. Testcontainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.

    private final GenericContainer arangodb =
            new GenericContainer("arangodb/arangodb:latest")
                    .withExposedPorts(8529)
                    .withEnv("ARANGO_NO_AUTH", "1")
                    .waitingFor(Wait.forHttp("/")
                            .forStatusCode(200));

    {
        arangodb.start();
    }

    @Override
    public ArangoDBDocumentCollectionManagerFactory get() {
        ArangoDBDocumentConfiguration configuration = new ArangoDBDocumentConfiguration();
        configuration.addHost(arangodb.getContainerIpAddress(), arangodb.getFirstMappedPort());
        return configuration.get();
    }

Jakarta EE and NoSQL

To the next version, we're working to move Eclipse JNoSQL under Jakarta EE specification; thereby, more community engagement will also be expected the package name might be changed to another sample such as "jakarta.nosql".

Eclipse Database integration test

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • What Is Policy-as-Code? An Introduction to Open Policy Agent
  • Key Considerations When Implementing Virtual Kubernetes Clusters
  • The Importance of Delegation in Management Teams
  • Enabling DB Migrations Using Kubernetes Init

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: