This repository has been archived by the owner on Jun 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathschema-test.txt
69 lines (59 loc) · 2.39 KB
/
schema-test.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
drop keyspace TestGossie;
create keyspace TestGossie
with placement_strategy = 'SimpleStrategy' and
strategy_options = {replication_factor: 1} and
durable_writes = true;
use TestGossie;
create column family AllTypes with
comparator = AsciiType and
key_validation_class = BytesType and
default_validation_class = UTF8Type and
column_metadata = [
{column_name: colBytesType, validation_class: BytesType},
{column_name: colAsciiType, validation_class: AsciiType, index_type: KEYS},
{column_name: colUTF8Type, validation_class: UTF8Type},
{column_name: colLongType, validation_class: LongType, index_type: KEYS},
{column_name: colIntegerType, validation_class: IntegerType},
{column_name: colDecimalType, validation_class: DecimalType},
{column_name: colUUIDType, validation_class: UUIDType},
{column_name: colBooleanType, validation_class: BooleanType},
{column_name: colFloatType, validation_class: FloatType},
{column_name: colDoubleType, validation_class: DoubleType},
{column_name: colDateType, validation_class: DateType}
]
;
create column family Counters with
comparator = AsciiType and
key_validation_class = BytesType and
default_validation_class = CounterColumnType
;
create column family Composite with
comparator = 'CompositeType(BytesType,AsciiType,UTF8Type,LongType,IntegerType,DecimalType,UUIDType,BooleanType,FloatType,DoubleType,DateType)' and
key_validation_class = BytesType and
default_validation_class = BytesType
;
create column family ReasonableZero with
comparator = AsciiType and
key_validation_class = UTF8Type and
default_validation_class = BytesType
;
create column family ReasonableOne with
comparator = 'CompositeType(LongType,AsciiType)' and
key_validation_class = UTF8Type and
default_validation_class = BytesType
;
create column family ReasonableTwo with
comparator = 'CompositeType(LongType,LongType,AsciiType)' and
key_validation_class = UTF8Type and
default_validation_class = BytesType
;
create column family Timeseries with
comparator = 'CompositeType(TimeUUIDType(reversed=true),AsciiType)' and
key_validation_class = UTF8Type and
default_validation_class = BytesType
;
create column family CompositeFull with
comparator = 'CompositeType(BytesType,AsciiType,UTF8Type,LongType,Int32Type,UUIDType,LexicalUUIDType,TimeUUIDType,BooleanType,FloatType,DoubleType,DateType)' and
key_validation_class = BytesType and
default_validation_class = BytesType
;