Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
9465ae8
* Replace getSliceNames and getSliceRange with getColumns and getSup…
Jun 17, 2010
7235706
Version bump due to API change
Jun 17, 2010
a009b32
* Bugfix Keyspace::remove not handling super_column properly
Jun 17, 2010
1d60823
Eliminate hard-coded include path in M4 macro for Thrift
eyealike Jul 6, 2010
48ce0c1
Trail upstream relocation of thrift headers
eyealike Jul 6, 2010
a615874
Add .svn to .gitignore
eyealike Jul 6, 2010
b8a7d5e
Added Debian packaging
eyealike Jul 7, 2010
4139686
Added top.h to .gitignore
eyealike Jul 7, 2010
98cc2d6
Use quotes for intra-project includes
eyealike Jul 7, 2010
8b10035
Fix: Keyspace::remove() didn't work against super-column families.
eyealike Jul 16, 2010
3b21bdf
Fixed dependencies in Debian packaging. Added libgenthrift/configure.…
eyealike Jul 21, 2010
3268ee1
Merge remote branch 'eyealike/master'
Aug 26, 2010
47dc533
Revert "Trail upstream relocation of thrift headers"
Aug 26, 2010
6f4a213
Fix broken detection of libthrift
Aug 26, 2010
c353de5
Compiling now works again (Add THRIFT_PREFIX/include/thrift to includ…
Aug 27, 2010
c5c4967
Bump up to thrift 0.4, with generated interface version 2.2.0 (from c…
Aug 27, 2010
e5c7cf1
Unfortunately thrift-s output needs a bit of tweaking before it will …
Aug 27, 2010
f0628c3
Merge remote-tracking branch 'posulliv/master' - NOTE - due to
Mar 28, 2011
7fb71ea
Re-implement commit 9465ae86de437b80625ffbf8db39570ef9d811bb after me…
Mar 28, 2011
e678083
Cherry-pick commits 71676d1ee136db887208183f9b5d687197c9d614 and 2e12…
Oct 27, 2010
3de7beb
Re-generate libgenthrift using thrift 0.6.0
Mar 30, 2011
c970110
Usual fix after libgenthrift update to make compiling work again
Mar 30, 2011
cb68df9
Fix memleak if socket opening fails during construction as reported i…
Apr 1, 2011
dbc365e
Update README
minaguib Apr 11, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.svn
*.o
*.la
*.lo
Expand Down Expand Up @@ -32,6 +33,7 @@ libcassandra/util/.dirstamp
libcassandra/util/.deps/.dirstamp
libgenthrift/.libs/
libgenthrift/.dirstamp
libcassandra/.libs/
libgenthrift/configure.h
tests/.deps
tests/.dirstamp
Expand Down
14 changes: 13 additions & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
== End-Of-Life notice

This driver did its job at the time, but since has been greatly superceded by:
https://github.com/datastax/cpp-driver

Please switch to the above.



Original README:

== libcassandra

A C++ wrapper library for the interface to cassandra generated by thrift. This library is based on
Expand All @@ -6,7 +17,8 @@ the Java client hector.
The master branch will follow along with Cassandra trunk. Branches corresponding to stable releases
of Cassandra will be available. Downloads of these branches are also provided.

The current master and 0.7.0 branches will work with Apache Cassandra 0.7.x.
The current master and 0.7.0 branches will work with Apache Cassandra 0.7.x. . Internal libgenthrift
generated by thrift 0.6.0

== Install

Expand Down
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ echo " * C++ cstdint location: $ac_cv_cxx_cstdint"
echo " * C++ hash_map location: $ac_cv_cxx_hash_map"
echo " * C++ hash namespace: $ac_cv_cxx_hash_namespace"
echo " * C++ shared_ptr namespace: $ac_cv_shared_ptr_namespace"
echo " * THRIFT prefix: $LIBTHRIFT_PREFIX"
echo ""
echo "---"

6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
libcassandra (0.1-0ubuntu1) lucid; urgency=low

* Initial release.
* Fixed dependencies

-- Hannes Schmidt <hannes@eyealike.com> Wed, 21 Jul 2010 12:41:30 -0700
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5
42 changes: 42 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
Source: libcassandra
Section: devel
Priority: extra
Build-Depends: debhelper (>= 5), build-essential, mono-gmcs, python-dev, ant,
libmono-dev, erlang-base, ruby1.8-dev, autoconf, python-support, automake,
pkg-config, libtool, libboost-dev, libthrift-dev (>= 0.4.0), cdbs
Maintainer: Hannes Schmidt <hannes@eyealike.com>
Standards-Version: 3.7.3

Package: libcassandra1
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends} libthrift0 (>= 0.4.0)
Description: Apache Cassandra C++ client library
C++ wrapper library for the interface to Cassandra generated by Thrift. This
library is based on the Java client Hector.
.
The Apache Cassandra Project develops a highly scalable second-generation
distributed database, bringing together Dynamo's fully distributed design
and Bigtable's ColumnFamily-based data model.
.
Cassandra was open-sourced by Facebook in 2008, and is now developed by Apache
committers and contributors from many companies.
.
This package contains the runtime libraries needed for C++ client
applications using .

Package: libcassandra-dev
Architecture: any
Section: libdevel
Depends: ${shlibs:Depends}, ${misc:Depends}, libcassandra1, libthrift-dev (>= 0.4.0)
Description: Apache Cassandra C++ client library (development headers)
A C++ wrapper library for the interface to Cassandra generated by Thrift. This
library is based on the Java client Hector.
.
The Apache Cassandra Project develops a highly scalable second-generation
distributed database, bringing together Dynamo's fully distributed design
and Bigtable's ColumnFamily-based data model.
.
Cassandra was open-sourced by Facebook in 2008, and is now developed by Apache
committers and contributors from many companies.
.
This package contains the runtime libraries needed for C++ client applications.
70 changes: 70 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
This package was debianized by Hannes Schmidt <hannes@eyealike.com>
6/6/2010

It was downloaded from: http://github.com/posulliv/libcassandra with minor
patches hosted at http://github.com/eyealike/libcassandra.

Upstream Author(s): Padraig O'Sullivan <osullivan.padraig@gmail.com>

Copyright:
Copyright (c) 2010, Padraig O'Sullivan <osullivan.padraig@gmail.com>

License:
Software License Agreement (BSD License)

Copyright (c) 2010, Padraig O'Sullivan
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.

* Neither the name of Padraig O'Sullivan nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Packaging:
Copyright (c) 2010, by Hannes Schmidt <hannes@eyealike.com>
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the <organization> nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4 changes: 4 additions & 0 deletions debian/libcassandra-dev.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
usr/lib/*.la
usr/lib/libcassandra.so
usr/lib/libgenthrift.so
usr/include
2 changes: 2 additions & 0 deletions debian/libcassandra1.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
usr/lib/libcassandra.so.*
usr/lib/libgenthrift.so.*
10 changes: 10 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk

DEB_DH_INSTALL_SOURCEDIR = $(CURDIR)/debian/tmp

makebuilddir::
config/autorun.sh

6 changes: 6 additions & 0 deletions examples/simple.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,18 @@ using namespace libcassandra;

static string host("127.0.0.1");
static int port= 9160;
static int timeout= 5000;

int main()
{

CassandraFactory factory(host, port);
tr1::shared_ptr<Cassandra> client(factory.create());

// Not really needed since the factory timeout sets all 3 by default:
client->setRecvTimeout(timeout);
client->setSendTimeout(timeout);

string clus_name= client->getClusterName();
cout << "cluster name: " << clus_name << endl;

Expand Down
Loading