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
Protocol::CassandraCQL(3) User Contributed Perl Documentation Protocol::CassandraCQL(3)

"Protocol::CassandraCQL" - wire protocol support functions for Cassandra CQL

This module provides the basic constants and other support functions required to communicate with a Cassandra database using "CQL". It is not in itself a CQL client; it simply provides the necessary support functions to allow one to be written. It supports the additions added by "CQL" version 2.

For a complete client, see instead Net::Async::CassandraCQL.

The following families of constants are defined, along with export tags:

Bitmask of flags used in message frames.

Opcodes used in message frames.

Flag constants used in "OPCODE_QUERY" frames.

Type constants used in "OPCODE_BATCH" frames.

Result codes used in "OPCODE_RESULT" frames.

Flag constants used in "RESULT_ROWS" frames.

Type codes used in "TYPE_ROWS" and "TYPE_PREPARED" column metadata.

Consistency levels used in "OPCODE_QUERY" and "OPCODE_EXECUTE" frames.

Attempts to parse a complete message frame from the given byte string. If it succeeds, it returns the header fields and the body as an opaque byte string. If it fails, it returns an empty list.

If successful, it will remove the bytes of the message from the $bytes scalar, which must therefore be mutable.

Attempts to read a complete frame from the given filehandle, blocking until it is available. If an IO error happens, returns an empty list. The results are undefined if this method is called on a non-blocking filehandle.

Returns a byte string containing a complete message with the given fields as the header and body.

Sends a complete frame to the given filehandle.

Returns the "CONSISTENCY_*" value for the given name (without the initial "CONSISTENCY_" prefix).

Returns the name of the given "TYPE_*" value, without the initial "TYPE_" prefix.

  • Reimplement Protocol::CassandraCQL::Frame in XS code for better performance.
  • Support 64bit-challenged perls by using "Math::BigInt" for 64bit values

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

Paul Evans <leonerd@leonerd.org.uk>
2022-04-08 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

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