Java Code Examples for org.apache.accumulo.core.client.IteratorSetting#addOptions()
The following examples show how to use
org.apache.accumulo.core.client.IteratorSetting#addOptions() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: QueryPlan.java From datawave with Apache License 2.0 | 6 votes |
/** * @param queryTree * @param rangeIter * @param settings * @param columnFamilies */ public QueryPlan(JexlNode queryTree, Iterable<Range> rangeIter, List<IteratorSetting> settings, Collection<String> columnFamilies) { this.queryTree = queryTree; this.ranges = Lists.newArrayList(rangeIter); for (IteratorSetting setting : settings) { IteratorSetting newSetting = new IteratorSetting(setting.getPriority(), setting.getName(), setting.getIteratorClass()); newSetting.addOptions(setting.getOptions()); if (newSetting.getOptions().containsKey(QueryIterator.QUERY)) { newSetting.addOption(QueryIterator.QUERY, JexlStringBuildingVisitor.buildQuery(queryTree)); newSetting.addOption(QueryIterator.RANGES, this.ranges.stream().map(Range::toString).collect(Collectors.joining(",", "[", "]"))); } this.settings.add(newSetting); } if (null != columnFamilies) this.columnFamilies.addAll(columnFamilies); buildHashCode(); }
Example 2
Source File: SessionOptions.java From datawave with Apache License 2.0 | 5 votes |
public Collection<IteratorSetting> getIterators() { Collection<IteratorSetting> settings = Lists.newArrayList(); for (IterInfo iter : serverSideIteratorList) { IteratorSetting setting = new IteratorSetting(iter.getPriority(), iter.getIterName(), iter.getClassName()); setting.addOptions(serverSideIteratorOptions.get(iter.getIterName())); settings.add(setting); } return settings; }
Example 3
Source File: ScannerBaseDelegate.java From timely with Apache License 2.0 | 5 votes |
public Collection<IteratorSetting> getIterators() { Collection<IteratorSetting> settings = Lists.newArrayList(); for (IterInfo iter : serverSideIteratorList) { IteratorSetting setting = new IteratorSetting(iter.getPriority(), iter.getIterName(), iter.getClassName()); setting.addOptions(serverSideIteratorOptions.get(iter.getIterName())); settings.add(setting); } return settings; }
Example 4
Source File: BoundingBoxFilter.java From accumulo-recipes with Apache License 2.0 | 5 votes |
public static void setBoundingBox(IteratorSetting config, Rectangle2D.Double box) { Map<String, String> props = new HashMap<String, String>(); props.put("x", Double.toString(box.getX())); props.put("y", Double.toString(box.getY())); props.put("width", Double.toString(box.getWidth())); props.put("height", Double.toString(box.getHeight())); config.addOptions(props); }