GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  NET::ASYNC::CASSANDRACQL::QUERY (3)

.ds Aq ’

NAME

"Net::Async::CassandraCQL::Query" - a Cassandra CQL prepared query

CONTENTS

DESCRIPTION

Prepared query objects are returned by the prepare of Net::Async::CassandraCQL to represent a prepared query in the server. They can be executed multiple times, if required, by passing the values of the placeholders to the execute method.

For backward compatibility, as this object class is no longer a subclass of Protocol::CassandraCQL::ColumnMeta, the following methods will be directed to the params_meta instance.



 columns column_name column_shortname column_type find_column
 encode_data decode_data



However, most of them are available more directly as the param* methods. Code should not rely on these temporary redirects remaining in a future version.

METHODS

CW$id = CW$query->id

Returns the query ID.

CW$cql = CW$query->cql

Returns the original query string used to prepare the query.

CW$meta = CW$query->params_meta

Returns a Protocol::CassandraCQL::ColumnMeta instance with the metadata about the bind parameters.

CW$n_params = CW$query->params

CW$name = CW$query->param_name( CW$idx )

( CW$keyspace, CW$table, CW$column ) = CW$query->param_name( CW$idx )

CW$name = CW$query->param_shortname( CW$idx )

CW$type = CW$query->param_type( CW$idx )

Redirections to the appropriately named method on the params_meta object.

CW$meta = CW$query->result_meta

Returns a Protocol::CassandraCQL::ColumnMeta instance with the metadata about the query result. This will only be defined on connections with a cql_version of 2 or above.

CW$query->execute( CW$data, CW$consistency ) ==> ( CW$type, CW$result )

Executes the query on the Cassandra connection object that created it, returning a future yielding the result the same way as the query or execute methods.

The contents of the $data reference will be encoded according to the types given in the underlying column metadata. $data may be given as a positional ARRAY reference, or a named HASH reference where the keys give column names.

SPONSORS

This code was paid for by
o Perceptyx <http://www.perceptyx.com/>
o Shadowcat Systems <http://www.shadow.cat>

AUTHOR

Paul Evans <leonerd@leonerd.org.uk>
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 NET::ASYNC::CASSANDRACQL::QUERY (3) 2016-04-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.