Examples of GridNodeKeyValueCollector


Examples of gridool.directory.helpers.GridNodeKeyValueCollector

            return Collections.emptyMap();
        }

        final byte[] k = StringUtils.getBytes(colPath);
        Set<GridNode> mapableNodes = CollectionUtils.asSet(liveNodes);
        final GridNodeKeyValueCollector collector = new GridNodeKeyValueCollector(mapableNodes);
        try {
            directory.prefixSearch(k, collector);
        } catch (DbException e) {
            String errmsg = "prefixSearch failed: " + colPath;
            LOG.error(errmsg);
            throw new GridException(errmsg, e);
        }
        final Map<String, List<GridNode>> mapping = collector.getMapping();
        if(mapping.isEmpty()) {// no mapping found
            return Collections.emptyMap();
        }

        final BindingVariable bindingVar = mapExpr.getBindingVariable();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.