Skip to content

Instantly share code, notes, and snippets.

View stuarthendren's full-sized avatar
🏠
Working from home

Stuart Hendren stuarthendren

🏠
Working from home
View GitHub Profile
@stuarthendren
stuarthendren / CassandraSchemaGenerator.java
Last active April 26, 2020 15:23 — forked from eintopf/CassandraSchemaGenerator.java
Since the Datastax driver currently does not support the Auto-Creation of table schema I have extended this class by https://gist.github.com/eintopf. It creates the create queries (strings). The execution has to be done in another step. The original problem originates from here: http://stackoverflow.com/questions/32953050/datastax-cassandra-java…
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.net.InetAddress;
import java.nio.ByteBuffer;
import java.util.Date;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;