Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

added composite and dy.comp CFs, default_validation_class for all CFs

  • Loading branch information...
commit d902366e9be92325e4dd73bdc3e8b018c07ef766 1 parent 3bf3e3d
zznate authored

Showing 1 changed file with 16 additions and 11 deletions. Show diff stats Hide diff stats

  1. +16 11 npanxx_script.txt
27 npanxx_script.txt
@@ -7,26 +7,31 @@ use Tutorial;
7 7 drop column family StateCity;
8 8 create column family StateCity
9 9 with comparator = LongType
10   - and key_validation_class = 'UTF8Type'
11   - and keys_cached = 10000
12   - and memtable_flush_after = 1440
13   - and memtable_throughput = 32;
  10 + and default_validation_class = 'UTF8Type'
  11 + and key_validation_class = 'UTF8Type';
  12 +
14 13
15 14 drop column family AreaCode;
16 15 create column family AreaCode
17 16 with comparator = UTF8Type
18   - and key_validation_class = 'UTF8Type'
19   - and keys_cached = 10000
20   - and memtable_flush_after = 1440
21   - and memtable_throughput = 32;
  17 + and default_validation_class = 'UTF8Type'
  18 + and key_validation_class = 'UTF8Type';
22 19
23 20 drop column family Npanxx;
24 21 create column family Npanxx
25 22 with comparator = AsciiType
  23 + and default_validation_class = 'UTF8Type'
  24 + and key_validation_class = 'UTF8Type';
  25 +
  26 +create column family StateNpaIndexStatic
  27 + with comparator = 'CompositeType(UTF8Type,LongType,LongType)'
  28 + and key_validation_class = 'UTF8Type'
  29 + and default_validation_class = 'UTF8Type';
  30 +
  31 +create column family StateNpaIndexDynamic
  32 + with comparator = 'DynamicCompositeType(s=>UTF8Type,l=>LongType)'
26 33 and key_validation_class = 'UTF8Type'
27   - and keys_cached = 10000
28   - and memtable_flush_after = 1440
29   - and memtable_throughput = 32;
  34 + and default_validation_class = 'UTF8Type';
30 35
31 36 set StateCity['TX Austin']['202'] = '30.27x097.74';
32 37 set StateCity['TX Austin']['203'] = '30.27x097.74';

0 comments on commit d902366

Please sign in to comment.
Something went wrong with that request. Please try again.