Cassandra::DBApi::Any
Wraps any possible Cassandra value. It can be supplied as a parameter for a query or be returned as a result. It dynamically handles values with actual types decided at runtime.
Cassandra::DBApi::Any serves a similar purpose as
JSON::Any.
In order to obtain the actual value use the as_* methods which perform
type checks against the raw underlying value.
Constructors
Instance methods
Checks that the underlying value is Array(Any), and returns its value.
Returns nil otherwise.
Checks that the underlying value is Bool, and returns its value.
Returns nil otherwise.
Checks that the underlying value is Bytes, and returns its value.
Returns nil otherwise.
Checks that the underlying value is DBApi::Date, and returns its value.
Raises otherwise.
Checks that the underlying value is DBApi::Date, and returns its value.
Returns nil otherwise.
Checks that the underlying value is Float32, and returns its value.
Returns nil otherwise.
Checks that the underlying value is Float64, and returns its value.
Returns nil otherwise.
Checks that the underlying value is Hash(Any, Any), and returns its value.
Raises otherwise.
Checks that the underlying value is Hash(Any, Any), and returns its value.
Returns nil otherwise.
Checks that the underlying value is Int16, and returns its value.
Returns nil otherwise.
Checks that the underlying value is Int32, and returns its value.
Returns nil otherwise.
Checks that the underlying value is Int64, and returns its value.
Returns nil otherwise.
Checks that the underlying value is Int8, and returns its value.
Returns nil otherwise.
Checks that the underlying value is String, and returns its value.
Returns nil otherwise.
Checks that the underlying value is Set(Any), and returns its value.
Returns nil otherwise.
Checks that the underlying value is DBApi::Time, and returns its value.
Raises otherwise.
Checks that the underlying value is DBApi::Time, and returns its value.
Returns nil otherwise.
Checks that the underlying value is ::Time, and returns its value.
Raises otherwise.
Checks that the underlying value is ::Time, and returns its value.
Returns nil otherwise.
Checks that the underlying value is DBApi::TimeUuid, and returns its value.
Raises otherwise.
Checks that the underlying value is DBApi::TimeUuid, and returns its value.
Returns nil otherwise.
Checks that the underlying value is DBApi::Uuid, and returns its value.
Raises otherwise.
Checks that the underlying value is DBApi::Uuid, and returns its value.
Returns nil otherwise.