GithubHelp home page GithubHelp logo

Comments (8)

mkjellman avatar mkjellman commented on June 15, 2024

Could you post a cf schema that your looking to query just to make sure i totally understand the request? Thanks

from perlcassa.

larsx2 avatar larsx2 commented on June 15, 2024

Let's suppose i want to retrieve a row with this key:

RowKey: 2009-04-19 22:40:25-0900:smtp.usma.bluenet.:10.1.60.25:A:167853061:667da0075b5a14c65eff0b25308cf072
=> (column=answer, value=10.1.60.25, timestamp=1359759908728109)
....

The row key is made from multiple columns (date, query, answer, type, dst_ip, checksum)
the Column Family in this case is defined as:

CREATE COLUMN FAMILY dns WITH comparator = 'UTF8Type'
AND key_validation_class = 'CompositeType(DateType, UTF8Type, UTF8Type, UTF8Type, DecimalType, UTF8Type)'
AND compression_options = {sstable_compression: SnappyCompressor} and column_metadata = [
{column_name: src_ip, validation_class: DecimalType},
{column_name: dst_ip, validation_class: DecimalType},
{column_name: query, validation_class: UTF8Type},
{column_name: type, validation_class: UTF8Type},
{column_name: answer, validation_class: UTF8Type},
{column_name: rr_class, validation_class: UTF8Type},
{column_name: date, validation_class: DateType},
{column_name: checksum, validation_class: UTF8Type}
];

As described, how would i fetch an specific row using perlcassa?

from perlcassa.

mkjellman avatar mkjellman commented on June 15, 2024

honestly, I never thought of using a CompositeType in a key. I assume your just doing that to validate your input for the key name?

Should be pretty easy for me to add in though.

from perlcassa.

larsx2 avatar larsx2 commented on June 15, 2024

It would be AWESOME if you can add support for it :)

from perlcassa.

dmcnelis avatar dmcnelis commented on June 15, 2024

@mkjellman Do you still plan to implement this, and if so, any idea when you might get to it?

from perlcassa.

mkjellman avatar mkjellman commented on June 15, 2024

@dmcnelis apologies on the delay. i'll try to get something committed into trunk todayish

from perlcassa.

dmcnelis avatar dmcnelis commented on June 15, 2024

Awesomeness!

from perlcassa.

swatidhoke avatar swatidhoke commented on June 15, 2024

Hi ... this would be great..can you also add support for row key as long data type ..i have also added my issue separately

from perlcassa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.