Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[geowave-dev] Geowave DataIdQuery Problem with Lists

[resent b/c of initial bounce from list server]
----

Good evening GeoWave Developers,

I am trying to debug a problem with querying for features using DataIdQuery and  multiple feature IDs.  This is in GeoWave 0.9.0.1.

It appears that even when I specify multiple IDs, the query only returns the first feature rather than the full set.  Here is a quick code snippet to illustrate:

        List<ByteArrayId> nidList = new ArrayList<>();
        for (String nodeId : nodeIdList) {
            ByteArrayId nid = new ByteArrayId(nodeId);
            nidList.add(nid);
        }
        ByteArrayId daid = nodeDA.getAdapterId();
        DataIdQuery query = new DataIdQuery(daid, nidList);
        final CloseableIterator<SimpleFeature> iterator = geowaveDS.query(options, query);

        while (iterator.hasNext()) {
            SimpleFeature feature = iterator.next();
            NodeWritable node = new NodeWritable(feature);
            results.add(node);
        }

The query only seems to return the first feature from from the ID list.  I have verified that all features are in the datastore and can be queried for.

Has anyone else seen this issue and is there any workaround other than creating separate queries for each ID and manually cycling though them on the client side?

Thanks,

-bill

-- 
Bill Rankin, Ph.D.
Advanced GEOINT Systems (AGS)
BAE Systems, Inc.
bill.t.rankin@xxxxxxxxxxxxxx
919.794.8956 (w)



Back to the top