| Interface | Description |
|---|---|
| CassandraCluster | |
| CassandraEntityStoreConfiguration | |
| CassandraEntityStoreService |
Cassandra EntityStore service.
|
| CassandraMigration | |
| ClusterBuilder |
| Class | Description |
|---|---|
| CassandraCluster.Mixin | |
| CassandraEntityStoreMixin |
MongoDB implementation of MapEntityStore.
|
| ClusterBuilder.DefaultBuilder |
The Cassandra EntityStore can either use an existing Cassandra Keyspace, which is the default, OR create its own keyspace.
The CassandraEntityStoreConfiguration#keyspaceName() defines the name of the keyspace to use, or to be
created.
If not defined, then the default name is "polygene".
The CassandraEntityStoreConfiguration#createIfMissing() defines if new missing resources should
be created or an Exception should be thrown if missing.
If it is created, then the CassandraEntityStoreConfiguration#replicationFactor() will define the replication
factor, and the command to create the keyspace is;
CREATE KEYSPACE <keyspaceName> WITH replication = {'class':'SimpleStrategy', 'replication_factor' : <replicationFactor> };
Polygene will store all entities in a single Cassandra TABLE
CREATE TABLE <tableName> (
id text,
version text,
appversion text,
storeversion text,
usecase text,
modified timestamp,
properties map<string,string>
assocs map<string,string>
manyassocs map<string,string>
namedassocs map<string,string>
PRIMARY KEY ( id )
);