Method | url | Comments |
---|---|---|
PUT | /v1/data/{name}/{key}?tag*=<val> |
multiple tags can be passed |
GET | /v1/data/{name}/{key}/{tags: .+} |
Only first 2 tags path params will be considered |
name_key_value
column name | Type | Constrain |
---|---|---|
name | text | PK |
object_name | text | PK |
name_key | text | PK |
tag | text | CC |
value | text |
CREATE TABLE proof.name_key_value (
name text,
objectname text,
objectkey text,
tag text,
value text,
PRIMARY KEY ((name, objectname, objectkey), tag)
) WITH CLUSTERING ORDER BY (tag ASC);
String script = "CREATE KEYSPACE IF NOT EXISTS " + getKeyspaceName()
+ " WITH durable_writes = 'true' "
+ "AND replication = { 'replication_factor' : 1, 'class' : 'SimpleStrategy' };";
SELECT name, nameobject, objectkey, tag, value
FROM name_key_value WHERE name = ? AND nameobject = ?
AND objectkey = ? AND tag = ?;
- Spring boot
- Jersey
- spring-data-cassandra
- cassandra
- The curl XPUT is getting filtered out by the spings internal filter. Tested with POSTMAN client
- Clone the code
- execute from the command line
./mvnw spring-boot:run
- Getting cassandra Dockerized.
- Externalizing the order of precedence of tags to a property file. Currenlty hard coded to
car.engine -> car.body