Creating a Custom Apache Cassandra® Secondary Index Plugin: Tools, Tips, and Tricks

Setup

System Configuration

`ant-eclipse-files`

Project Configuration

Project Design

org.apache.cassandra.index.Index

org.apache.cassandra.index.Index.Indexer

org.apache.cassandra.index.Index.Searcher

Serde?

Testing

Adjusting the Cassandra Project

  1. Your class should extend CQLTester.
  2. Your class should use Junit to denote the test methods.
  3. Each method should create the base table and index so that there are clean tables.
  4. Each method should use CQL commands to manipulate the data.

Running the Tests

Adding the Test Class to the Index Code

--

--

Managed platform for open source technologies including Apache Cassandra, Apache Kafka, Apache ZooKeepere, Redis, Elasticsearch and PostgreSQL

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Instaclustr

Instaclustr

Managed platform for open source technologies including Apache Cassandra, Apache Kafka, Apache ZooKeepere, Redis, Elasticsearch and PostgreSQL