@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); negate = Boolean.parseBoolean(options.get(NEGATE)); }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { log.debug("init({}, {}, {})", source, options, env); if (prefix == null) { prefix = String.format("0x%08X", this.hashCode()); } super.init(source, options, env); }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); this.numVersions = 0; String maxVerString = options.get("maxVersions"); if (maxVerString != null) this.maxVersions = Integer.parseInt(maxVerString); else this.maxVersions = 1; if (maxVersions < 1) throw new IllegalArgumentException("maxVersions for versioning iterator must be >= 1"); }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); negate = false; if (options.get(NEGATE) != null) { negate = Boolean.parseBoolean(options.get(NEGATE)); } }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); this.decisionIterator = new RowIterator(source.deepCopy(env)); }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); combineAllColumns = false; if (options.containsKey(ALL_OPTION)) { combineAllColumns = Boolean.parseBoolean(options.get(ALL_OPTION)); if (combineAllColumns) return; } if (!options.containsKey(COLUMNS_OPTION)) throw new IllegalArgumentException("Must specify " + COLUMNS_OPTION + " option"); String encodedColumns = options.get(COLUMNS_OPTION); if (encodedColumns.length() == 0) throw new IllegalArgumentException("The " + COLUMNS_OPTION + " must not be empty"); combiners = new ColumnSet(Lists.newArrayList(Splitter.on(",").split(encodedColumns))); isMajorCompaction = env.getIteratorScope() == IteratorScope.majc; String rofco = options.get(REDUCE_ON_FULL_COMPACTION_ONLY_OPTION); if (rofco != null) { reduceOnFullCompactionOnly = Boolean.parseBoolean(rofco); } else { reduceOnFullCompactionOnly = false; } if (reduceOnFullCompactionOnly && isMajorCompaction && !env.isFullMajorCompaction()) { // adjust configuration so that no columns are combined for a partial major compaction combineAllColumns = false; combiners = new ColumnSet(); } }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); scanning = IteratorScope.scan.equals(env.getIteratorScope()); if (scanning) { String auths = options.get(AUTH_OPT); if (auths != null && !auths.isEmpty()) { ve = new VisibilityEvaluator(new Authorizations(auths.getBytes(UTF_8))); visibleCache = new LRUMap(100); } } if (options.containsKey(MAX_BUFFER_SIZE_OPT)) { maxBufferSize = ConfigurationTypeHelper .getFixedMemoryAsBytes(options.get(MAX_BUFFER_SIZE_OPT)); } else { maxBufferSize = DEFAULT_MAX_BUFFER_SIZE; } parsedVisibilitiesCache = new LRUMap(100); }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); this.initEnv = env; }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); this.env = env; }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); negate = Boolean.parseBoolean(options.get(NEGATE)); }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { log.debug("init(" + source + ", " + options + ", " + env + ")"); if (null == prefix) { prefix = String.format("0x%08X", this.hashCode()); } super.init(source, options, env); }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); negate = false; if (options.get(NEGATE) != null) { negate = Boolean.parseBoolean(options.get(NEGATE)); } }
@Override public void init(SortedKeyValueIterator<Key, Value> source, Map<String, String> options, IteratorEnvironment env) throws IOException { log.info("init(" + source + ", " + options + ", " + env + ")"); if (null == prefix) { prefix = String.format("0x%08X", this.hashCode()); } super.init(source, options, env); }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); if (options.containsKey(SLEEP_TIME)) sleepTime = Long.parseLong(options.get(SLEEP_TIME)); if (options.containsKey(SEEK_SLEEP_TIME)) seekSleepTime = Long.parseLong(options.get(SEEK_SLEEP_TIME)); }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); if (options.containsKey(MAX_AGGREGATE_OPT)) { try { maxRecordCount = Long.parseLong(options.get(MAX_AGGREGATE_OPT)); } catch (NumberFormatException e) { log.error("Invalid value (" + options.get(MAX_AGGREGATE_OPT) + ") for " + MAX_AGGREGATE_OPT + " option: " + e.getMessage()); throw e; } } }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); validateOptions(options); }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); if (options.containsKey(PRETTY_PRINT_OPT)) { prettyPrint = Boolean.parseBoolean(options.get(PRETTY_PRINT_OPT)); } gson = initializeGson(); }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); parseOptions(options); initBatchWriter(); }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); IteratorEnvironment sampleEnv = env.cloneWithSamplingEnabled(); sampleDC = source.deepCopy(sampleEnv); } }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); this.decisionIterator = new RowIterator(source.deepCopy(env)); }