qbits.hayt.fns

as

(as selector id)

Aliases a column (selector) to another identifier (id)

ascii->blob

(ascii->blob x__3921__auto__)

bigint->blob

(bigint->blob x__3921__auto__)

blob->ascii

(blob->ascii x__3921__auto__)

blob->bigint

(blob->bigint x__3921__auto__)

blob->boolean

(blob->boolean x__3921__auto__)

blob->counter

(blob->counter x__3921__auto__)

blob->decimal

(blob->decimal x__3921__auto__)

blob->double

(blob->double x__3921__auto__)

blob->float

(blob->float x__3921__auto__)

blob->inet

(blob->inet x__3921__auto__)

blob->int

(blob->int x__3921__auto__)

blob->text

(blob->text x__3921__auto__)

blob->timestamp

(blob->timestamp x__3921__auto__)

blob->timeuuid

(blob->timeuuid x__3921__auto__)

blob->uuid

(blob->uuid x__3921__auto__)

blob->varchar

(blob->varchar x__3921__auto__)

blob->varint

(blob->varint x__3921__auto__)

boolean->blob

(boolean->blob x__3921__auto__)

count*

Returns a count(*) CQL function

count1

Returns a count(1) CQL function

counter->blob

(counter->blob x__3921__auto__)

cql-fn

(cql-fn name & args)

Calls supplied function by name, with the supplied args

cql-ns

(cql-ns & xs)

handles namespaced identifiers

cql-raw

(cql-raw x)

Allows to pass raw (assumed safe) content, no escaping will be applied.

date->epoch

(date->epoch d)

date-of

deprecated in 3.1.0

(date-of x)

DEPRECATED: USE to-date instead http://cassandra.apache.org/doc/cql3/CQL.html#usingtimeuuid

Returns a dateOf function with the supplied argument

decimal->blob

(decimal->blob x__3921__auto__)

distinct*

(distinct* & xs)

Returns DISTINCT column id ex: (select :table (columns (distinct :foo)))

double->blob

(double->blob x__3921__auto__)

float->blob

(float->blob x__3921__auto__)

inet->blob

(inet->blob x__3921__auto__)

int->blob

(int->blob x__3921__auto__)

max-timeuuid

(max-timeuuid date)

min-timeuuid

(min-timeuuid date)

now

Returns a now() CQL function

text->blob

(text->blob x__3921__auto__)

timestamp->blob

(timestamp->blob x__3921__auto__)

timeuuid->blob

(timeuuid->blob x__3921__auto__)

to-date

added in 3.1.0

(to-date x)

http://cassandra.apache.org/doc/cql3/CQL.html#timeFun

Converts the timestamp/timeuuid argument into a date type

to-timestamp

added in 3.1.0

(to-timestamp x)

http://cassandra.apache.org/doc/cql3/CQL.html#timeFun

Converts the timestamp/timeuuid argument into a timestamp type

to-unix-timestamp

added in 3.1.0

(to-unix-timestamp x)

http://cassandra.apache.org/doc/cql3/CQL.html#timeFun

Converts the timestamp/timeuuid/date argument into a bigInt raw value

token

(token & tokens)

http://cassandra.apache.org/doc/cql3/CQL.html#selectStmt

Returns a token function with the supplied argument

ttl

(ttl x)

http://cassandra.apache.org/doc/cql3/CQL.html#selectStmt

Returns a TTL function with the supplied argument

unix-timestamp-of

deprecated in 3.1.0

(unix-timestamp-of x)

DEPRECATED: USE to-unix-timestamp instead http://cassandra.apache.org/doc/cql3/CQL.html#usingtimeuuid

Returns a unixTimestampOf function with the supplied argument

uuid->blob

(uuid->blob x__3921__auto__)

varchar->blob

(varchar->blob x__3921__auto__)

varint->blob

(varint->blob x__3921__auto__)

writetime

(writetime x)

http://cassandra.apache.org/doc/cql3/CQL.html#selectStmt

Returns a WRITETIME function with the supplied argument