Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 20DD3200D16 for ; Tue, 10 Oct 2017 11:14:20 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1F617160BE0; Tue, 10 Oct 2017 09:14:20 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 637061609E5 for ; Tue, 10 Oct 2017 11:14:19 +0200 (CEST) Received: (qmail 82561 invoked by uid 500); 10 Oct 2017 09:14:18 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 82551 invoked by uid 99); 10 Oct 2017 09:14:18 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Oct 2017 09:14:18 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id AC8D61A3057 for ; Tue, 10 Oct 2017 09:14:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.172 X-Spam-Level: ** X-Spam-Status: No, score=2.172 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.972] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id ydxIIeAMJyOY for ; Tue, 10 Oct 2017 09:14:15 +0000 (UTC) Received: from n6.nabble.com (n6.nabble.com [162.255.23.37]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 6F4305F6C6 for ; Tue, 10 Oct 2017 09:14:15 +0000 (UTC) Received: from n6.nabble.com (localhost [127.0.0.1]) by n6.nabble.com (Postfix) with ESMTP id B8FBE228E63D for ; Tue, 10 Oct 2017 02:14:14 -0700 (MST) Date: Tue, 10 Oct 2017 02:14:14 -0700 (MST) From: elopez779 To: user@ignite.apache.org Message-ID: <1507626854729-0.post@n6.nabble.com> Subject: map types in Cassandra MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Tue, 10 Oct 2017 09:14:20 -0000 Hi. I'm a beginner in Ignite and I have a question regarding map types in Cassandra. I have been given a table anf I have to create a cache. One of the fields of the table is type map. I tried to create a POJO class to read the row. The POJO is as follows: public class PojoAccount implements Serializable { private Map locationinfo; private String status; public PojoAccount() { super(); } public PojoAccount(Map loc_info, String st) { this.locationinfo = loc_info; this.status = st; } public Map getLocationInfo() { return locationinfo; } public String getStatus() { return status; } public void setLocationInfo(Map loc_info) { locationinfo = loc_info; } public void setStatus(String st) { status = st; } public String toString() { return status + " ; " + locationinfo.toString(); } } and I get the following error when running the app: Value locationinfo is of type map, not blob I can use any type of variable in my POJO class. I used Map because I thought that it would work, so my question is: How can I read a map type or a collection in general? Thanks in advance Enrique -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/