从cassandra结果集中获取UDT值

时间:2017-04-24 08:59:15

标签: spring-boot

我有一个订单表,下面给出了一组UDT类型的值:

create table keyspace.ORDERS (
 email text,
 order_id int,
 order_total float,
 shipments set<frozen<keyspace.shipping>>,
 so on
);

此处发货是一个单独创建的UDT,如下所示:

create type shipping(
 name text,
 quantity_shipped int,
 tax float,
 and so on
);

如何在排除此查询后获取我的java代码中的订单详细信息和UDT值: 从订单中选择*,其中email ='some email id';

1 个答案:

答案 0 :(得分:0)