Hi guys,
I trying retrieve all data on my column family using method persistenceFactory.getColumns("Geral2", "b25b4b70-bbd2-11e2-8f3e-90b11cf59ca2",false, "dinName", "dinEnd");
this don't work when I have created my column family using follow method: persistenceFactory.executeQuery(Integer.class, Query.get(createColumnFamily(
columnFamily("Geral2"),
columnDefinitions(
primaryKey("myKey", ColumnDataType.UUID),
column("dinName", ColumnDataType.TEXT),
column("dinEnd", ColumnDataType.TEXT)
),
storageOptions(
storageOption(StorageParameter.COMMENT, "comment"),
storageOption(StorageParameter.READ_REPAIR_CHANCE, "1")
)
)));
so, I create this index:
persistenceFactory.executeQuery(Integer.class, Query.get(createIndex(
onColumnFamily("Geral2"),
indexName("myIndex"),
column("dinName")
)));
but I have the follow error:
Exception in thread "main" me.prettyprint.hector.api.exceptions.HInvalidRequestException: InvalidRequestException(why:No indexed columns present in by-columns clause with "equals" operator)
in cassandra-cli I see the index created.
any suggestion or solution, please?