Here is a link to the CQL3 data types to Java types chart.
I also tried varint, but still no luck.
I would have thought that varint
should have worked, too. But I can see (in the link referenced above) that varint
maps to BigInteger
, so no luck there. In any case, it would appear that a mapping between a short
and a CQL3 integer-based type does not exist.
However, if you want to store bytes you can use the blob
CQL3 type.
EDIT 20180727
It looks like smallint
in CQL now maps to java.lang.Short
.