Comments (8)
Could you post a cf schema that your looking to query just to make sure i totally understand the request? Thanks
from perlcassa.
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.
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.
It would be AWESOME if you can add support for it :)
from perlcassa.
@mkjellman Do you still plan to implement this, and if so, any idea when you might get to it?
from perlcassa.
@dmcnelis apologies on the delay. i'll try to get something committed into trunk todayish
from perlcassa.
Awesomeness!
from perlcassa.
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)
- Long data type is not supported HOT 5
- Option seed_nodes does not work for a single node HOT 4
- Add support for prepared queries
- Compatability of perlcassa with Datastax cassandra 3.0 HOT 3
- Create column family with perlcassa HOT 3
- CQL3 support HOT 3
- How to Use Bulk_insert HOT 3
- exec function in perlcassa.pm fails when a node is down HOT 3
- Unable to find column family created with cqlsh HOT 1
- Failing to decode certain data. HOT 7
- Segmentation fault when using threads and DBI and a node is down
- [ERROR] There were no available Cassandra servers left at /usr/local/share/perl5/perlcassa/Client.pm line 123 HOT 1
- seed_nodes option fails when there is only one node
- Unknown CQL result type
- Pack UTF8/text type is incorrect
- 'timestamp' data type is not supported HOT 5
- Add cblower to CPAN co-maintainers HOT 1
- "real" bulk inserts HOT 1
- Insert null value?
- No support for internal authentication?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from perlcassa.