@Override public boolean validateOptions(Map<String,String> options) { if (!super.validateOptions(options)) return false; try { setLossyness(options); } catch (Exception e) { throw new IllegalArgumentException("bad boolean " + LOSSY + ":" + options.get(LOSSY)); } return true; }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); setLossyness(options); }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); setLossyness(options); }
@Override public boolean validateOptions(Map<String,String> options) { if (super.validateOptions(options) == false) return false; try { setLossyness(options); } catch (Exception e) { throw new IllegalArgumentException("bad boolean " + LOSSY + ":" + options.get(LOSSY)); } return true; }
LongCombiner.setEncodingType(itSet, LongCombiner.Type.STRING); TypedValueCombiner.setLossyness(itSet, true); // silently ignore bad values