Protocol::CassandraCQL::Type - represents a Cassandra CQL data type
Protocol::CassandraCQL::Type
Objects in this class represent distinct types that may be found in Cassandra CQL3, either as columns in query result rows, or as bind parameters to prepared statements. It is used by Protocol::CassandraCQL::ColumnMeta.
Returns a new type object initialised by parsing the type information in the given message frame.
Returns a string representation of the type name.
Encodes the given perl data into a bytestring.
Decodes the given bytestring into perl data.
Validates whether the given perl data is valid for this type. If so, returns false. Otherwise, returns an error message explaining why.
Returns the type of the elements in the list or set, for LIST and SET types.
LIST
SET
Returns the type of the keys and values in the map, for MAP types.
MAP
The following encodings to and from perl data are supported:
To or from a string scalar, which must contain only US-ASCII codepoints (i.e. ord <= 127).
ord
To or from a numeric scalar.
To or from an opaque string scalar of bytes.
To or from an instance of Math::BigFloat, or from a regular numeric scalar.
To or from a numeric scalar, representing a UNIX epoch timestamp as a float to the nearest milisecond.
To or from a string containing hex digits and hyphens, in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
To or from a string scalar containing Unicode characters.
To or from an instance of Math::BigInt, or from a regular numeric scalar.
To or from an ARRAY reference containing elements.
ARRAY
To or from a HASH reference, where the keys used must be of some string type.
HASH
This code was paid for by
Perceptyx http://www.perceptyx.com/
Shadowcat Systems http://www.shadow.cat
Paul Evans <leonerd@leonerd.org.uk>
To install Protocol::CassandraCQL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Protocol::CassandraCQL
CPAN shell
perl -MCPAN -e shell install Protocol::CassandraCQL
For more information on module installation, please visit the detailed CPAN module installation guide.