cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lucas Nodine <lucasnod...@gmail.com>
Subject Re: How to Retrieve all the rows from a ColumnFamily
Date Mon, 27 Sep 2010 12:25:05 GMT
Example code using C# below:

Collections.Generic.List<ColumnOrSuperColumn> results;
SlicePredicate predicate;
ColumnParent cp;

// Create Slice
predicate = new SlicePredicate()
{
  Slice_range = new SliceRange()
  {
   Start = _utf8.GetBytes(""),
   Finish = _utf8.GetBytes(""),
   Count = 100,
     Reversed = false
  }
};

// Column Parent
cp = new ColumnParent() { Column_family = "MetaAssets" };

results = _client.get_slice(_utf8.GetBytes(guid.ToString("N")), cp,
predicate, ConsistencyLevel.QUORUM);


On Mon, Sep 27, 2010 at 2:44 AM, Benjamin Black <b@b3k.us> wrote:

> http://wiki.apache.org/cassandra/FAQ#iter_world
>
> On Sun, Sep 26, 2010 at 11:51 PM, sekhar kosuru <kosurusekhar@gmail.com>
> wrote:
> > Hi
> > I am new to Cassandra Database.
> > I want to know how to Retrieve all the records from a column family, is
> this
> > is different in the clustered servers vs single servers.
> > Please suggest me with piece of code if possible.
> >
> > /Regards
> > Sekhar.
> >
>



-- 
Lucas J. Nodine
Assistant Labette County Attorney
201 S. Central, Suite B
Parsons, KS 67357
(620) 421-6370

Mime
View raw message