我正在使用Java Driver从事Cassandra的数据检索工作。
我有自定义数据类型
CREATE TYPE ynapanalyticsteam.ynapnestedmap (
so_nestedmap map<text, text>
);
列类型映射如下
order_line map<text, frozen<ynapnestedmap>>
我正在尝试使用TypeToken检索此列的值,如下所示。
row.getMap("order_line", TypeToken.of(String.class), new TypeToken<Map<String,String>>() {});
但我仍然得到codecNot发现异常。
答案 0 :(得分:0)
You need to define codec for your nested user-defined type, not for date_beg = datetime(2016,01,01);
date_end = datetime(2017,09,15);
figure();
xlim([datenum(date_beg) datenum(date_end)]);
datetick('x','dd-mm-yyyy','keeplimits');
- they are different types...
The documentation for java driver has good description of this process.
The code that you trying to use will work for definition of column like:
void redundantcode_2_with_no_param() {…}