CREATE KEYSPACE falcon_gps WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1};
CREATE TABLE falcon_gps.gps (
gprscode varchar,
vehicleId int,
gpstime timestamp,
acc int,
direct int,
lat double,
lng double,
posinfo varchar,
offset int,
power int,
sendmodel int,
speed int,
status int,
statusDes varchar,
alarmDes varchar,
updatetime timestamp,
PRIMARY KEY (gprscode, gpstime)
) WITH CLUSTERING ORDER BY (gpstime ASC)