Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    perlcassa 0.03

    Download button

    No screenshots available
    Downloads: 118  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Michael Kjellman | More programs
    Perl Artistic License / FREE
    June 30th, 2012, 05:11 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    perlcassa description

    Perl Client for Apache Cassandra

    perlcassa is a native Perl client for interfacing with Apache Cassandra. It is essentially an API for Apache Thrift. It intelligently deals with CompositeType columns and ValidationClasses and encodes and packs them appropriately for the columnfamily specified.

    Note: This package does not support SuperColumns. Please look into CompositeType Comparators instead.

    SYNOPSIS

    use perlcassa;

    my $obj = new perlcassa( 'columnfamily' => 'myCF', 'keyspace' => 'myKeyspace', 'hosts' => ['host1.cassandra.local', 'host2.cassandra.local', 'host3.cassandra.local'],

     #optional
     'write_consistency_level' => Cassandra::ConsistencyLevel::QUORUM,
     'read_consistency_level' => Cassandra::ConsistencyLevel::QUORUM,
     'port' => '9160'
    );

    my %composite = ('values' => ['name_pt1', 'name_pt2']);

    $obj->insert( 'key' => 'myKey', 'columnname' => \%composite, 'value' => 'myVal' );

    $obj->get( 'key' => 'myKey', 'columnname' => 'myColumn' );

    $obj->get_slice( 'key' => 'myKey', 'start' => ['name_pt1'], 'finish' => ['name_pt2','name_pt2_c'], 'start_equality' => 'equal', #optional (defaults to equal, options: equal, less_than_equal, or greater_than_equal) 'finish_equality'=> 'greater_than_equal' #optional (defaults to greater_than_equal, options: equal, less_than_equal, or greater_than_equal) );

    $obj->get_range_slices( key_start => '', key_finish => '', column_start => ['colpt1','a'], column_finish => ['thiscol'], key_max_count => 10000, buffer_size => 100 );

    my %bulk = ( #value => [columnname] 'test' => ['name_pt1', 'name_pt2'], 'test2' => ['name_pt3', 'name_pr4'] );

    $obj->bulk_insert( 'key' => 'testkey' 'columns' => \%bulk );



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Apache Cassandra | Perl module | Perl | Apache | Cassandra

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM