![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
cassandra
文章平均质量分 52
江湖归隐王嘉嘉
这个作者很懒,什么都没留下…
展开
-
cassandra的连接池配置
转自:http://zhaoyanblog.com/archives/547.htmlcassandra的连接池配置cassandra的datastax驱动使用的是异步nio实现的,发出去的请求,不会阻塞线程,当有响应的时候会通知你。所以cassandra客户端和服务器之间不需要太多的连接,因为发送一个请求是很快的,只要一个线程不断监听响应就可以了。cassandra的配置方式如下转载 2015-05-08 16:30:05 · 1611 阅读 · 0 评论 -
cassandra2.0 如何实现分页查询
转自:http://zhaoyanblog.com/archives/164.html本文用到的cassandra的版本是2.0.6版1、前提和约束12CREATE TABLE test(a INT,b INT,c INT, d string,e string,PRIMARY KEY(a,b,c));CREATE INDEX ON test(d转载 2015-05-08 16:33:25 · 1024 阅读 · 0 评论 -
java实现cassandra的增删改查
转自:http://zhaoyanblog.com/archives/180.htmlcassandra使用cql语言作为操作语言,cassandra在2.0之后,在操作上越来越像sql数据库的操作,这样想从传统关系型数据库,切换到cassandra的花,上手成本也越来越低。使用官方java驱动操作cassandra 非常简单。maven引入驱动包1234转载 2015-05-08 16:32:32 · 622 阅读 · 0 评论 -
cassandra关于集合类型的操作
转自:http://zhaoyanblog.com/archives/177.html举例:create table test( a int, b list, c set, d map, primary key(a));插入使用下面的形式insert into test(a,b,c,d) values(1,[‘listtext1′,’listtext2′],转载 2015-05-08 16:35:19 · 246 阅读 · 1 评论 -
cassandra的索引查询和排序
转自:http://zhaoyanblog.com/archives/499.htmlcassandra的索引查询和排序cassandra的查询虽然很弱,但是它也是支持索引和排序的,当然是简陋的查询,这一切都是为了追求性能的代价,所以要使用cassandra,你不能希望它完全适用你的逻辑,而是把你的逻辑设计的更适合cassandra。第一:索引查询cassandra是支持创建二转载 2015-05-08 16:36:28 · 486 阅读 · 0 评论 -
cassandra支持的查询表达式
转自:http://zhaoyanblog.com/archives/265.html本文介绍cassandra支持的,目前我所知道的所有查询表达式类型。如果你需要更复杂的查询,单单依靠cassandra是很难做到的,你需要借助其它手段或者工具。cassandra目前支持的表达式目前有三种:我们先假设我们的表结构是这样的:123456789转载 2015-05-08 16:35:11 · 297 阅读 · 0 评论 -
cassandra的索引查询和排序
转自:http://zhaoyanblog.com/archives/499.htmlcassandra的索引查询和排序cassandra的查询虽然很弱,但是它也是支持索引和排序的,当然是简陋的查询,这一切都是为了追求性能的代价,所以要使用cassandra,你不能希望它完全适用你的逻辑,而是把你的逻辑设计的更适合cassandra。第一:索引查询cassandra是支持创建二转载 2015-05-08 16:28:36 · 837 阅读 · 0 评论 -
Cassandra in Spring
最近在学习Cassandra,发现只有安装配置的教程,但是对于如何实际使用介绍的很少,即使有也是非常间的示例,或者通过EasyCassandra的方案无法继续。找到下面的文章,非常难得,转过来,希望给大家帮助。转载自:http://middlewaresnippets.blogspot.com/2015/02/cassandra-in-spring.htmlCassandr转载 2015-05-08 19:17:33 · 1226 阅读 · 1 评论