I hereby claim:
- I am alexott on github.
- I am alexott (https://keybase.io/alexott) on keybase.
- I have a public key whose fingerprint is F44D C864 AB51 8652 21E1 51C5 5828 4E39 1698 B501
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| package test; | |
| import com.owlike.genson.Genson; | |
| import com.owlike.genson.GensonBuilder; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| public class TestGenson { |
| #!/bin/bash | |
| # By default, Confluent provides Debian versions of their packages via APT - as result, they are linked | |
| # to other versions of the libraries than in Ubuntu, ... | |
| # This small script rebuilds them on Ubuntu, or Debian versions different from provided by default. | |
| MY_BUILD_DIR="build-$$" | |
| mkdir $MY_BUILD_DIR | |
| cd $MY_BUILD_DIR | |
| apt-get source librdkafka libavro-cpp-dev libavro-c-dev confluent-libserdes-dev |
| # language true-positive total accuracy | |
| af 32 34 0.94 | |
| ar 200 201 0.99 | |
| az 161 161 1.00 | |
| be 157 157 1.00 | |
| bg 195 203 0.96 | |
| bn 198 198 1.00 | |
| ca 193 193 1.00 | |
| cs 195 196 0.99 | |
| da 198 200 0.99 |
| package jdtest1; | |
| import java.util.UUID; | |
| import com.datastax.driver.core.Cluster; | |
| import com.datastax.driver.core.Session; | |
| import com.datastax.driver.mapping.Mapper; | |
| import com.datastax.driver.mapping.MappingManager; | |
| public class App { |
| package com.datastax.alexott.demos.jdtest1; | |
| import java.io.IOException; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import com.datastax.driver.core.ColumnDefinitions; | |
| import com.datastax.driver.core.DataType; | |
| import com.datastax.driver.core.ResultSet; | |
| import com.datastax.driver.core.Row; |
| cqlsh:test> DESCRIBE table log; | |
| CREATE TABLE test.log ( | |
| module text, | |
| yyyymmdd text, | |
| created timeuuid, | |
| logmessage text, | |
| PRIMARY KEY ((module, yyyymmdd), created) | |
| ) WITH CLUSTERING ORDER BY (created ASC) | |
| AND bloom_filter_fp_chance = 0.01 |
| package com.datastax.demos.alexott.product; | |
| import com.datastax.driver.core.Cluster; | |
| import com.datastax.driver.core.CodecRegistry; | |
| import com.datastax.driver.core.Session; | |
| import com.datastax.driver.mapping.Mapper; | |
| import com.datastax.driver.mapping.MappingManager; | |
| public class App { |
| for i in `find ~/.m2/repository/ -name \*.jar`; do unzip -l $i 2> /dev/null > /dev/null ; RES=$?; if [ $RES -ne 0 ]; then echo "$i: $RES" ; fi ; done |
Built statements are generated via [QueryBuilder]'s Fluent API. Use of Fluent API allows easier build of the complex queries, comparing with hardcoding the CQL statements into the source code.
Note: The provider builders perform very little validation of the built query. There is thus no guarantee that a built query is valid, and it is definitively possible to create invalid queries.