zznate / hector-examples

Various examples of using the Hector API to access Apache Cassandra
MIT License
80 stars 26 forks source link

SchemaManipulation.java doesn't create secondary index #2

Open yourabi opened 13 years ago

yourabi commented 13 years ago

After running SchemaManipulation this is the output from cassandra-cli (show keyspaces)

Keyspace: DynamicKeyspace: Replication Strategy: org.apache.cassandra.locator.SimpleStrategy Durable Writes: true Options: [replication_factor:1] Column Families: ColumnFamily: DynamicCf Key Validation Class: org.apache.cassandra.db.marshal.BytesType Default column value validator: org.apache.cassandra.db.marshal.BytesType Columns sorted by: org.apache.cassandra.db.marshal.BytesType Row cache size / save period in seconds: 0.0/0 Key cache size / save period in seconds: 0.0/0 Memtable thresholds: 0.26718749999999997/1440/57 (millions of ops/minutes/MB) GC grace seconds: 0 Compaction min/max thresholds: 4/32 Read repair chance: 0.0 Replicate on write: false Built indexes: [] Column Metadata: Column Name: birthdate (626972746864617465) Validation Class: org.apache.cassandra.db.marshal.LongType ColumnFamily: SuperCf (Super) Key Validation Class: org.apache.cassandra.db.marshal.BytesType Default column value validator: org.apache.cassandra.db.marshal.BytesType Columns sorted by: org.apache.cassandra.db.marshal.BytesType/org.apache.cassandra.db.marshal.BytesType Row cache size / save period in seconds: 0.0/0 Key cache size / save period in seconds: 0.0/0 Memtable thresholds: 0.26718749999999997/1440/57 (millions of ops/minutes/MB) GC grace seconds: 0 Compaction min/max thresholds: 4/32 Read repair chance: 0.0 Replicate on write: false Built indexes: []

Compared with the Keyspace created by the Riptano documentation example

Keyspace: demo: Replication Strategy: org.apache.cassandra.locator.NetworkTopologyStrategy Durable Writes: true Options: [datacenter1:1] Column Families: ColumnFamily: users Key Validation Class: org.apache.cassandra.db.marshal.BytesType Default column value validator: org.apache.cassandra.db.marshal.BytesType Columns sorted by: org.apache.cassandra.db.marshal.UTF8Type Row cache size / save period in seconds: 0.0/0 Key cache size / save period in seconds: 200000.0/14400 Memtable thresholds: 0.5484375/1440/117 (millions of ops/minutes/MB) GC grace seconds: 864000 Compaction min/max thresholds: 4/32 Read repair chance: 1.0 Replicate on write: true Built indexes: [users.users_birth_date_idx] Column Metadata: Column Name: birth_date Validation Class: org.apache.cassandra.db.marshal.LongType Index Name: users_birth_date_idx Index Type: KEYS Column Name: full_name Validation Class: org.apache.cassandra.db.marshal.UTF8Type Keyspace: system: